diff options
author | mbuesch@freenet.de <mbuesch@freenet.de> | 2005-02-06 01:39:25 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:24:20 -0700 |
commit | 85925517e67b85c94180b1de5e2cbd6a1c67c54c (patch) | |
tree | 532952ba025a60ea982eadb24cfd4b2d497a4046 /udev_utils.h | |
parent | 36429eef378dd5666eca49a21460e7b61f0b61f3 (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.h')
-rw-r--r-- | udev_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_utils.h b/udev_utils.h index cc9dd704de..5d2c9c580c 100644 --- a/udev_utils.h +++ b/udev_utils.h @@ -77,7 +77,7 @@ do { \ #endif extern void udev_init_device(struct udevice *udev, const char* devpath, const char *subsystem); -extern int kernel_release_satisfactory(int version, int patchlevel, int sublevel); +extern int kernel_release_satisfactory(unsigned int version, unsigned int patchlevel, unsigned int sublevel); extern int create_path(const char *path); extern int parse_get_pair(char **orig_string, char **left, char **right); extern int file_map(const char *filename, char **buf, size_t *bufsize); |