]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hexdump: rewrite get()
authorOndrej Oprala <ooprala@redhat.com>
Mon, 23 Sep 2013 13:39:12 +0000 (15:39 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 8 Nov 2013 11:54:52 +0000 (12:54 +0100)
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
text-utils/display.c

index 1b82d3fe47860c506a1c722452fb3af91f01bfb6..524c8b897b5969c424ce8061c16786f68d6dec0d 100644 (file)
@@ -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