]> www.infradead.org Git - mtd-utils.git/commitdiff
Fix recv_image build harder
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 22 May 2008 11:44:14 +0000 (12:44 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 22 May 2008 11:44:14 +0000 (12:44 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
recv_image.c

index 3b793040122e4f939e049338e8dea769fc470d1e..d65aa2a902e87d1f60a1ec9de3bf2f7988e292e7 100644 (file)
@@ -1,14 +1,14 @@
 
 #define _XOPEN_SOURCE 500
-#define _USE_MISC
 
-#include <errno.h>     
-#include <error.h>     
-#include <netdb.h>     
-#include <stdio.h>     
-#include <stdlib.h>    
+#include <errno.h>
+#include <error.h>
+#include <stdio.h>
+#define __USE_GNU
+#include <netdb.h>
+#include <stdlib.h>
 #include <string.h>
-#include <unistd.h>    
+#include <unistd.h>
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -307,7 +307,7 @@ int main(int argc, char **argv)
                                                ~(meminfo.erasesize - 1);
                                        erase.length = meminfo.erasesize;
 
-                                       printf("Will erase at %08lx len %08lx (bad write was at %08lx)\n", 
+                                       printf("Will erase at %08x len %08x (bad write was at %08x)\n", 
                                               erase.start, erase.length, eraseblocks[block_nr].flash_offset);
                                        if (ioctl(flfd, MEMERASE, &erase)) {
                                                perror("MEMERASE");