This silences two warnings when compiling eepro100.c.
2000-05-29 Chip Salzenberg <[EMAIL PROTECTED]>
* stage2/shared.h (grub_memmove): Prototype to use void*.
* stage2/char_io.c (grub_memmove): Define likewise.
Index: stage2/shared.h
diff -u -2 -r1.46 shared.h
--- stage2/shared.h 2000/05/28 14:30:48 1.46
+++ stage2/shared.h 2000/05/30 01:27:34
@@ -699,5 +699,5 @@
int grub_isspace (int c);
int grub_strncat (char *s1, const char *s2, int n);
-char *grub_memmove (char *to, const char *from, int len);
+void *grub_memmove (void *to, const void *from, int len);
void *grub_memset (void *start, int c, int len);
int grub_strncat (char *s1, const char *s2, int n);
Index: stage2/char_io.c
diff -u -2 -r1.24 char_io.c
--- stage2/char_io.c 2000/04/02 17:22:53 1.24
+++ stage2/char_io.c 2000/05/30 01:27:33
@@ -847,6 +847,6 @@
}
-char *
-grub_memmove (char *to, const char *from, int len)
+void *
+grub_memmove (void *to, const void *from, int len)
{
if (memcheck ((int) to, len))
@@ -874,6 +874,6 @@
: "=&c" (d0), "=&S" (d1), "=&D" (d2)
: "0" (len),
- "1" (len - 1 + from),
- "2" (len - 1 + to)
+ "1" (len - 1 + (const char *)from),
+ "2" (len - 1 + (char *)to)
: "memory");
}
--
Chip Salzenberg - a.k.a. - <[EMAIL PROTECTED]>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K