projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e4a2e
)
Use __builtin_memcmp() instead of memcmp() to be explicit about
author
hpa
<hpa>
Thu, 30 Jan 2003 20:08:26 +0000
(20:08 +0000)
committer
hpa
<hpa>
Thu, 30 Jan 2003 20:08:26 +0000
(20:08 +0000)
what we're doing...
memdisk/setup.c
patch
|
blob
|
history
diff --git
a/memdisk/setup.c
b/memdisk/setup.c
index
249d847
..
05b4eef
100644
(file)
--- a/
memdisk/setup.c
+++ b/
memdisk/setup.c
@@
-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;