Use __builtin_memcmp() instead of memcmp() to be explicit about
authorhpa <hpa>
Thu, 30 Jan 2003 20:08:26 +0000 (20:08 +0000)
committerhpa <hpa>
Thu, 30 Jan 2003 20:08:26 +0000 (20:08 +0000)
what we're doing...

memdisk/setup.c

index 249d847..05b4eef 100644 (file)
@@ -362,7 +362,7 @@ const struct geometry *get_disk_image_geometry(uint32_t where, uint32_t size)
 
   /* Do we have a DOSEMU header? */
   copy_from_high(&dosemu, where+hd_geometry.offset, sizeof dosemu);
-  if ( !memcmp("DOSEMU", dosemu.magic, 7) ) {
+  if ( !__builtin_memcmp("DOSEMU", dosemu.magic, 7) ) {
     /* Always a hard disk unless overruled by command-line options */
     hd_geometry.driveno = 0x80;
     hd_geometry.type = 0;