From: Sami Kerola Date: Sun, 10 Jun 2012 14:48:31 +0000 (+0200) Subject: sysfs: fix printf format warnings X-Git-Tag: v2.22-rc1~277^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d72cbc1e2db063166c0767b5c5a26ef04f2972a;p=thirdparty%2Futil-linux.git sysfs: fix printf format warnings sysfs.c:93:3: warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat] sysfs.c:93:3: warning: format '%u' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat] Signed-off-by: Sami Kerola --- diff --git a/lib/sysfs.c b/lib/sysfs.c index 3b5d045c4f..312191f034 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -90,7 +90,7 @@ dev_t sysfs_devname_to_devno(const char *name, const char *parent) if (!f) return 0; - if (fscanf(f, "%u:%u", &maj, &min) == 2) + if (fscanf(f, "%d:%d", &maj, &min) == 2) dev = makedev(maj, min); fclose(f); }