diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-12 21:47:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-02-13 00:56:13 +0100 |
commit | 641906e9366891e0ad3e6e38b7396a427678c4cf (patch) | |
tree | 47f90e01b79c50ab0839f0a0a10a8fae81dd9a25 /src/udev/scsi_id/scsi_serial.c | |
parent | Merge branch 'master' of ssh://git.freedesktop.org/git/systemd/systemd into work (diff) | |
download | systemd-641906e9366891e0ad3e6e38b7396a427678c4cf.tar.xz systemd-641906e9366891e0ad3e6e38b7396a427678c4cf.zip |
use strneq instead of strncmp
Diffstat (limited to 'src/udev/scsi_id/scsi_serial.c')
-rw-r--r-- | src/udev/scsi_id/scsi_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/scsi_id/scsi_serial.c b/src/udev/scsi_id/scsi_serial.c index 950b8adc0a..d522a23a08 100644 --- a/src/udev/scsi_id/scsi_serial.c +++ b/src/udev/scsi_id/scsi_serial.c @@ -436,7 +436,7 @@ static int do_scsi_page0_inquiry(struct udev *udev, * If the vendor id appears in the page assume the page is * invalid. */ - if (!strncmp((char *)&buffer[VENDOR_LENGTH], dev_scsi->vendor, VENDOR_LENGTH)) { + if (strneq((char *)&buffer[VENDOR_LENGTH], dev_scsi->vendor, VENDOR_LENGTH)) { log_debug("%s: invalid page0 data\n", dev_scsi->kernel); return 1; } |