summaryrefslogtreecommitdiffstats
path: root/misc-utils/lslocks.c
diff options
context:
space:
mode:
authorKarel Zak2012-12-20 19:57:48 +0100
committerKarel Zak2012-12-20 19:57:48 +0100
commit46d4ce56a71d826d718be4b5474bc8189b1c0915 (patch)
tree33e21705e23ee5b23990e2bbc611749a40738287 /misc-utils/lslocks.c
parentfdisk: (gpt) fix compiler warnings (diff)
downloadkernel-qcow2-util-linux-46d4ce56a71d826d718be4b5474bc8189b1c0915.tar.gz
kernel-qcow2-util-linux-46d4ce56a71d826d718be4b5474bc8189b1c0915.tar.xz
kernel-qcow2-util-linux-46d4ce56a71d826d718be4b5474bc8189b1c0915.zip
lslocks: fix compiler warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lslocks.c')
-rw-r--r--misc-utils/lslocks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c
index 1d44405b6..0a82129e0 100644
--- a/misc-utils/lslocks.c
+++ b/misc-utils/lslocks.c
@@ -218,7 +218,7 @@ static ino_t get_dev_inode(char *str, dev_t *dev)
int maj = 0, min = 0;
ino_t inum = 0;
- sscanf(str, "%02x:%02x:%lu", &maj, &min, &inum);
+ sscanf(str, "%02x:%02x:%ju", &maj, &min, &inum);
*dev = (dev_t) makedev(maj, min);
return inum;
@@ -415,10 +415,10 @@ static void add_tt_line(struct tt *tt, struct lock *l)
xasprintf(&str, "%d", l->mandatory);
break;
case COL_START:
- xasprintf(&str, "%ld", l->start);
+ xasprintf(&str, "%jd", l->start);
break;
case COL_END:
- xasprintf(&str, "%ld", l->end);
+ xasprintf(&str, "%jd", l->end);
break;
case COL_PATH:
xasprintf(&str, "%s", l->path ? l->path : notfnd);