Skip to content

Commit

Permalink
Trivial cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
landley committed Jul 25, 2023
1 parent 18ebd3e commit cfa3a88
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions toys/other/xxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ static void do_xxd(int fd, char *name)
if (limit) limit += TT.s;
}

while (0<(len = readall(fd, toybuf,
(limit && limit-pos<c)?limit-pos:c)))
{
while (0<(len = readall(fd, toybuf, (limit && limit-pos<c) ? limit-pos : c))){
if (!FLAG(p)) printf("%08llx: ", TT.o + pos);
pos += len;
space = 2*TT.c;
Expand Down

0 comments on commit cfa3a88

Please sign in to comment.