Skip to content

Commit

Permalink
Remove some trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Dec 9, 2018
1 parent 6499daf commit 625caa6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unbini.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
static unsigned long
parse_u32(const unsigned char *p)
{
return (unsigned long)p[0] << 0 |
(unsigned long)p[1] << 8 |
(unsigned long)p[2] << 16 |
return (unsigned long)p[0] << 0 |
(unsigned long)p[1] << 8 |
(unsigned long)p[2] << 16 |
(unsigned long)p[3] << 24;
}

static unsigned
parse_u16(const unsigned char *p)
{
return (unsigned)p[0] << 0 |
return (unsigned)p[0] << 0 |
(unsigned)p[1] << 8;
}

Expand Down Expand Up @@ -95,7 +95,7 @@ print_string(const unsigned char *s, FILE *out)
print_special(s, 0, out);
return;
}

/* Does it look an integer? Quote it. */
errno = 0;
i = strtol((char *)s, &end, 10);
Expand Down Expand Up @@ -217,7 +217,7 @@ main(int argc, char **argv)
/* is there enough room for this entry? */
if (p > text - 3)
fatal("truncated entry, aborting");

/* parse entry struct */
name = parse_u16(p);
nvalue = p[2];
Expand Down

0 comments on commit 625caa6

Please sign in to comment.