summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authormbuesch@freenet.de <mbuesch@freenet.de>2005-02-06 01:39:25 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:24:20 -0700
commit85925517e67b85c94180b1de5e2cbd6a1c67c54c (patch)
tree532952ba025a60ea982eadb24cfd4b2d497a4046 /udev_utils.c
parent36429eef378dd5666eca49a21460e7b61f0b61f3 (diff)
[PATCH] trivial: fix signedness
We are already using %u in the sscanf() format string. The patch replaces the int for the kernel release number with unsigned int, as we can never have negative release numbers.
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev_utils.c b/udev_utils.c
index 3c5344a8f9..364037f7a9 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -62,11 +62,11 @@ void udev_init_device(struct udevice *udev, const char* devpath, const char *sub
strcpy(udev->group, "root");
}
-int kernel_release_satisfactory(int version, int patchlevel, int sublevel)
+int kernel_release_satisfactory(unsigned int version, unsigned int patchlevel, unsigned int sublevel)
{
- static int kversion = 0;
- static int kpatchlevel;
- static int ksublevel;
+ static unsigned int kversion = 0;
+ static unsigned int kpatchlevel;
+ static unsigned int ksublevel;
if (kversion == 0) {
struct utsname uts;