OSDN Git Service

Fix const in memcpy_by_audio_format parameter
authorAndy Hung <hunga@google.com>
Thu, 10 Jul 2014 21:21:42 +0000 (14:21 -0700)
committerAndy Hung <hunga@google.com>
Thu, 10 Jul 2014 21:21:42 +0000 (14:21 -0700)
Change-Id: I7bdeb587e45695e6a914918ba75f102048b2e0eb

audio_utils/format.c
audio_utils/include/audio_utils/format.h

index caa354a..e91e057 100644 (file)
@@ -22,7 +22,7 @@
 #include <audio_utils/format.h>
 
 void memcpy_by_audio_format(void *dst, audio_format_t dst_format,
-        void *src, audio_format_t src_format, size_t count)
+        const void *src, audio_format_t src_format, size_t count)
 {
     /* default cases for error falls through to fatal log below. */
     if (dst_format == src_format) {
index 9a68fd2..07e3935 100644 (file)
@@ -52,7 +52,7 @@ __BEGIN_DECLS
  * Logs a fatal error if dst or src format is not allowed by the conversion rules above.
  */
 void memcpy_by_audio_format(void *dst, audio_format_t dst_format,
-        void *src, audio_format_t src_format, size_t count);
+        const void *src, audio_format_t src_format, size_t count);
 
 __END_DECLS