It's better to use memcmp() anyway given the code in question.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
+2006-05-14 Theodore Tso <tytso@mit.edu>
+
+ * probe.c (probe_udf): Fix signed vs. unsigned lint warning;
+ better to use memcmp() rather than strncmp() anyway.
+
2006-04-09 Theodore Ts'o <tytso@mit.edu>
* blkid_types.h.in, Makefile.in, tst_types.c: Use the asm_types.h
NSR01 for UDF 1.00
NSR02 for UDF 1.50
NSR03 for UDF 2.00 */
- if (!strncmp(isosb->vd_id, "NSR0", 4))
+ if (!memcmp(isosb->vd_id, "NSR0", 4))
return 0;
for (m = udf_magic; *m; m++)
- if (!strncmp(*m, isosb->vd_id, 5))
+ if (!memcmp(*m, isosb->vd_id, 5))
break;
if (*m == 0)
return 1;