changeset 27860:c547b2f6d825

Add some const specifiers to function name variables; fixes a bunch of "initialization discards qualifiers from pointer target type" warnings.
author diego
date Tue, 04 Nov 2008 20:38:55 +0000
parents 6aeb7cc0bba2
children 92ee70fc780b
files libswscale/cs_test.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/cs_test.c	Tue Nov 04 18:44:14 2008 +0000
+++ b/libswscale/cs_test.c	Tue Nov 04 20:38:55 2008 +0000
@@ -75,7 +75,7 @@
         struct func_info_s {
             int src_bpp;
             int dst_bpp;
-            char *name;
+            const char *name;
             void (*func)(const uint8_t *src, uint8_t *dst, long src_size);
         } func_info[] = {
             FUNC(2, 2, rgb15to16),
@@ -127,7 +127,7 @@
                 for(srcOffset=128; srcOffset<196; srcOffset+=4){
                     uint8_t *src= srcBuffer+srcOffset;
                     uint8_t *dst= dstBuffer+dstOffset;
-                    char *name=NULL;
+                    const char *name=NULL;
 
                     if(failed) break; //don't fill the screen with shit ...