chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] udev_volume_id: volume_id version 032
[elogind.git]
/
extras
/
volume_id
/
volume_id
/
hfs
/
hfs.c
diff --git
a/extras/volume_id/volume_id/hfs/hfs.c
b/extras/volume_id/volume_id/hfs/hfs.c
index 638aabadf28fb23f0650cb55b1a4d3aceb92723b..a4ae86b56a0c1b66d27731bd8d4f857b2ba5ba64 100644
(file)
--- a/
extras/volume_id/volume_id/hfs/hfs.c
+++ b/
extras/volume_id/volume_id/hfs/hfs.c
@@
-178,11
+178,11
@@
int volume_id_probe_hfs_hfsplus(struct volume_id *id, __u64 off)
return -1;
hfs = (struct hfs_mdb *) buf;
return -1;
hfs = (struct hfs_mdb *) buf;
- if (
strn
cmp(hfs->signature, "BD", 2) != 0)
+ if (
mem
cmp(hfs->signature, "BD", 2) != 0)
goto checkplus;
/* it may be just a hfs wrapper for hfs+ */
goto checkplus;
/* it may be just a hfs wrapper for hfs+ */
- if (
strn
cmp(hfs->embed_sig, "H+", 2) == 0) {
+ if (
mem
cmp(hfs->embed_sig, "H+", 2) == 0) {
alloc_block_size = be32_to_cpu(hfs->al_blk_size);
dbg("alloc_block_size 0x%x", alloc_block_size);
alloc_block_size = be32_to_cpu(hfs->al_blk_size);
dbg("alloc_block_size 0x%x", alloc_block_size);
@@
-216,9
+216,9
@@
int volume_id_probe_hfs_hfsplus(struct volume_id *id, __u64 off)
checkplus:
hfsplus = (struct hfsplus_vol_header *) buf;
checkplus:
hfsplus = (struct hfsplus_vol_header *) buf;
- if (
strn
cmp(hfsplus->signature, "H+", 2) == 0)
+ if (
mem
cmp(hfsplus->signature, "H+", 2) == 0)
goto hfsplus;
goto hfsplus;
- if (
strn
cmp(hfsplus->signature, "HX", 2) == 0)
+ if (
mem
cmp(hfsplus->signature, "HX", 2) == 0)
goto hfsplus;
return -1;
goto hfsplus;
return -1;