summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-13 01:47:56 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-13 01:47:56 +0200
commite48e2912023b5600d291904b0f7b0017387e8cb2 (patch)
treec2a4d569cbeca5102e89c0be1357d77aea0fe947 /libudev
parentff2c503df091e6e4e9ab48cdb6df6ec8b7b525d0 (diff)
trivial cleanups
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-util-private.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c
index 19f979eeab..073f7e2df8 100644
--- a/libudev/libudev-util-private.c
+++ b/libudev/libudev-util-private.c
@@ -134,7 +134,7 @@ int util_unlink_secure(struct udev *udev, const char *filename)
uid_t util_lookup_user(struct udev *udev, const char *user)
{
char *endptr;
- int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
+ size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
char buf[buflen];
struct passwd pwbuf;
struct passwd *pw;
@@ -159,7 +159,7 @@ uid_t util_lookup_user(struct udev *udev, const char *user)
gid_t util_lookup_group(struct udev *udev, const char *group)
{
char *endptr;
- int buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
+ size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
char *buf;
struct group grbuf;
struct group *gr;