]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/eepro100_eeprom.c
Makefile : fix tags ctags etags with new drivers organization
[karo-tx-uboot.git] / examples / eepro100_eeprom.c
index 60b937ef8de5092c7a6cc98d25af96d8d4bc8988..a52e68d4e719c22440f342713dfe6d192291358a 100644 (file)
@@ -78,9 +78,12 @@ static inline short inw(long addr)
 
 static inline void *memcpy(void *dst, const void *src, unsigned int len)
 {
-       void * ret = dst;
-       while (len-- > 0) *((char *)dst)++ = *((char *)src)++;
-       return ret;
+       char *ret = dst;
+       while (len-- > 0) {
+               *ret++ = *((char *)src);
+               src++;
+       }
+       return (void *)ret;
 }
 
 /* The EEPROM commands include the alway-set leading bit. */