diff options
author | Ondrej Oprala | 2013-09-23 15:39:18 +0200 |
---|---|---|
committer | Karel Zak | 2013-11-08 12:54:52 +0100 |
commit | d6e5614e5d7ad07e3290c808f14b8e7a4e93acdd (patch) | |
tree | f47110438ee2679f464b9844c543a26814a77f52 /text-utils/conv.c | |
parent | hexdump: rewrite() formatting improvements (diff) | |
download | kernel-qcow2-util-linux-d6e5614e5d7ad07e3290c808f14b8e7a4e93acdd.tar.gz kernel-qcow2-util-linux-d6e5614e5d7ad07e3290c808f14b8e7a4e93acdd.tar.xz kernel-qcow2-util-linux-d6e5614e5d7ad07e3290c808f14b8e7a4e93acdd.zip |
hexdump: formatting and variable name cleanup
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'text-utils/conv.c')
-rw-r--r-- | text-utils/conv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/text-utils/conv.c b/text-utils/conv.c index 95b8cd296..4f7a248f2 100644 --- a/text-utils/conv.c +++ b/text-utils/conv.c @@ -73,12 +73,12 @@ conv_c(PR *pr, u_char *p) } if (isprint(*p)) { *pr->cchar = 'c'; - (void)printf(pr->fmt, *p); + printf(pr->fmt, *p); } else { - (void)sprintf(buf, "%03o", (int)*p); + sprintf(buf, "%03o", (int)*p); str = buf; strpr: *pr->cchar = 's'; - (void)printf(pr->fmt, str); + printf(pr->fmt, str); } } @@ -95,15 +95,15 @@ conv_u(PR *pr, u_char *p) /* od used nl, not lf */ if (*p <= 0x1f) { *pr->cchar = 's'; - (void)printf(pr->fmt, list[*p]); + printf(pr->fmt, list[*p]); } else if (*p == 0x7f) { *pr->cchar = 's'; - (void)printf(pr->fmt, "del"); + printf(pr->fmt, "del"); } else if (isprint(*p)) { *pr->cchar = 'c'; - (void)printf(pr->fmt, *p); + printf(pr->fmt, *p); } else { *pr->cchar = 'x'; - (void)printf(pr->fmt, (int)*p); + printf(pr->fmt, (int)*p); } } |