diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2017-09-22 02:53:01 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2017-09-22 02:53:01 +0000 |
commit | cbc1b3de8fdee8fb7ca5e69c65149a754abb6b66 (patch) | |
tree | c2148bad4fc9da8c4374235beecd3fdc877fc757 /sys/boot/efi | |
parent | 78ed811e6cf758e3c200d339dda2a6921c5d8cea (diff) |
libefi: efi_devpath_match local len should be unsigned
DevicePathNodeLength() will always return unsigned value.
Notes
Notes:
svn path=/head/; revision=323895
Diffstat (limited to 'sys/boot/efi')
-rw-r--r-- | sys/boot/efi/libefi/devpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/efi/libefi/devpath.c b/sys/boot/efi/libefi/devpath.c index 934d9d0654b8..15f2a5aab41f 100644 --- a/sys/boot/efi/libefi/devpath.c +++ b/sys/boot/efi/libefi/devpath.c @@ -142,7 +142,7 @@ efi_devpath_handle(EFI_DEVICE_PATH *devpath) bool efi_devpath_match(EFI_DEVICE_PATH *devpath1, EFI_DEVICE_PATH *devpath2) { - int len; + size_t len; if (devpath1 == NULL || devpath2 == NULL) return (false); @@ -156,7 +156,7 @@ efi_devpath_match(EFI_DEVICE_PATH *devpath1, EFI_DEVICE_PATH *devpath2) if (len != DevicePathNodeLength(devpath2)) return (false); - if (memcmp(devpath1, devpath2, (size_t)len) != 0) + if (memcmp(devpath1, devpath2, len) != 0) return (false); if (IsDevicePathEnd(devpath1)) |