summaryrefslogtreecommitdiffstats
path: root/text-utils/display.c
diff options
context:
space:
mode:
authorOndrej Oprala2013-09-23 15:39:12 +0200
committerKarel Zak2013-11-08 12:54:52 +0100
commitf77ad413660e9daafe7b3602ba4f10a868f17077 (patch)
tree5ec8781cce3caba9de3e5f005dbd764a362a13be /text-utils/display.c
parenthexdump: rewrite addfile() (diff)
downloadkernel-qcow2-util-linux-f77ad413660e9daafe7b3602ba4f10a868f17077.tar.gz
kernel-qcow2-util-linux-f77ad413660e9daafe7b3602ba4f10a868f17077.tar.xz
kernel-qcow2-util-linux-f77ad413660e9daafe7b3602ba4f10a868f17077.zip
hexdump: rewrite get()
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'text-utils/display.c')
-rw-r--r--text-utils/display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/text-utils/display.c b/text-utils/display.c
index 1b82d3fe4..524c8b897 100644
--- a/text-utils/display.c
+++ b/text-utils/display.c
@@ -253,7 +253,8 @@ get(void)
savp = tmpp;
address += blocksize;
}
- for (need = blocksize, nread = 0;;) {
+ need = blocksize, nread = 0;
+ while (TRUE) {
/*
* if read the right number of bytes, or at EOF for one file,
* and no other files are available, zero-pad the rest of the