* [PATCH] android/avdtp: Constify data in avdtp_service_cap_new
@ 2014-08-27 13:01 Szymon Janc
2014-08-28 18:25 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2014-08-27 13:01 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
---
android/avdtp.c | 3 ++-
android/avdtp.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/android/avdtp.c b/android/avdtp.c
index 3985fb3..074ca13 100644
--- a/android/avdtp.c
+++ b/android/avdtp.c
@@ -2960,7 +2960,8 @@ struct avdtp_service_capability *avdtp_get_codec(struct avdtp_remote_sep *sep)
}
struct avdtp_service_capability *avdtp_service_cap_new(uint8_t category,
- void *data, int length)
+ const void *data,
+ int length)
{
struct avdtp_service_capability *cap;
diff --git a/android/avdtp.h b/android/avdtp.h
index 28895ea..d5335e4 100644
--- a/android/avdtp.h
+++ b/android/avdtp.h
@@ -218,7 +218,8 @@ void avdtp_unref(struct avdtp *session);
struct avdtp *avdtp_ref(struct avdtp *session);
struct avdtp_service_capability *avdtp_service_cap_new(uint8_t category,
- void *data, int size);
+ const void *data,
+ int size);
struct avdtp_service_capability *avdtp_get_codec(struct avdtp_remote_sep *sep);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] android/avdtp: Constify data in avdtp_service_cap_new
2014-08-27 13:01 [PATCH] android/avdtp: Constify data in avdtp_service_cap_new Szymon Janc
@ 2014-08-28 18:25 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-08-28 18:25 UTC (permalink / raw)
To: Szymon Janc; +Cc: linux-bluetooth
On Wednesday 27 August 2014 15:01:19 Szymon Janc wrote:
> ---
> android/avdtp.c | 3 ++-
> android/avdtp.h | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/android/avdtp.c b/android/avdtp.c
> index 3985fb3..074ca13 100644
> --- a/android/avdtp.c
> +++ b/android/avdtp.c
> @@ -2960,7 +2960,8 @@ struct avdtp_service_capability
> *avdtp_get_codec(struct avdtp_remote_sep *sep) }
>
> struct avdtp_service_capability *avdtp_service_cap_new(uint8_t category,
> - void *data, int length)
> + const void *data,
> + int length)
> {
> struct avdtp_service_capability *cap;
>
> diff --git a/android/avdtp.h b/android/avdtp.h
> index 28895ea..d5335e4 100644
> --- a/android/avdtp.h
> +++ b/android/avdtp.h
> @@ -218,7 +218,8 @@ void avdtp_unref(struct avdtp *session);
> struct avdtp *avdtp_ref(struct avdtp *session);
>
> struct avdtp_service_capability *avdtp_service_cap_new(uint8_t category,
> - void *data, int size);
> + const void *data,
> + int size);
>
> struct avdtp_service_capability *avdtp_get_codec(struct avdtp_remote_sep
> *sep);
Applied.
--
Szymon K. Janc
szymon.janc@gmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-28 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 13:01 [PATCH] android/avdtp: Constify data in avdtp_service_cap_new Szymon Janc
2014-08-28 18:25 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).