summaryrefslogtreecommitdiffstats
path: root/text-utils/display.c
diff options
context:
space:
mode:
authorKarel Zak2012-05-23 10:20:19 +0200
committerKarel Zak2012-05-23 10:20:19 +0200
commitb6b0ea094b7cbc4b6e9efa81c8ea01a2dd656317 (patch)
tree6a6db2b15ac98193bd36cbf86ec8ca4887bbb222 /text-utils/display.c
parentlast: use min() from c.h (diff)
downloadkernel-qcow2-util-linux-b6b0ea094b7cbc4b6e9efa81c8ea01a2dd656317.tar.gz
kernel-qcow2-util-linux-b6b0ea094b7cbc4b6e9efa81c8ea01a2dd656317.tar.xz
kernel-qcow2-util-linux-b6b0ea094b7cbc4b6e9efa81c8ea01a2dd656317.zip
hexdump: fix comparison of distinct pointer types
display.c: In function ‘get’: display.c:262:117: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/display.c')
-rw-r--r--text-utils/display.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/text-utils/display.c b/text-utils/display.c
index 84ec5d817..717565ed1 100644
--- a/text-utils/display.c
+++ b/text-utils/display.c
@@ -225,8 +225,7 @@ get(void)
{
static int ateof = 1;
static u_char *curp, *savp;
- ssize_t n;
- int need, nread;
+ ssize_t n, need, nread;
u_char *tmpp;
if (!curp) {