Fix const warning in memcpy and strcspn
authorTormod Volden <debian.tormod@gmail.com>
Sat, 23 May 2015 07:35:39 +0000 (09:35 +0200)
committerAlan Cox <alan@linux.intel.com>
Sat, 23 May 2015 10:51:25 +0000 (11:51 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Library/libs/memcpy.c
Library/libs/strcspn.c

index fd40304..293583a 100644 (file)
@@ -3,7 +3,7 @@
 void *memcpy(void *dest, const void *src, size_t len)
 {
        uint8_t *dp = dest;
-       uint8_t *sp = src;
+       const uint8_t *sp = src;
        while(len-- > 0)
                *dp++=*sp++;
        return dest;
index 69ab8ae..872a904 100644 (file)
@@ -13,7 +13,7 @@ size_t strcspn(const char *string, const char *set)
  */
 {
     register const char *setptr;
-    char *start;
+    const char *start;
 
     start = string;
     while (*string)