diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-12-22 03:20:06 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-12-22 03:20:06 +0000 |
commit | b4079fa1bade398c7c39e63e627ef746e35295b2 (patch) | |
tree | 8e4465c357fb6c4ef263dca1d23c4ea888cbee54 /sbin/dhclient | |
parent | 7c4fab2a7af87339d1d1754ee153c4e03a29bbf0 (diff) |
No need to change format id 'X' (ascii or hex) to 'x' (hex) while
pretty printing, when 'X' is not used in the next switch statement.
Just keep 'X'. Makes the code a touch less mysterious.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/options.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c index bc8db44a82e..dc987025a3d 100644 --- a/sbin/dhclient/options.c +++ b/sbin/dhclient/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.62 2013/12/21 18:23:10 krw Exp $ */ +/* $OpenBSD: options.c,v 1.63 2013/12/22 03:20:05 krw Exp $ */ /* DHCP options parsing and reassembly. */ @@ -308,7 +308,6 @@ pretty_print_option(unsigned int code, struct option_data *option, fmtbuf[i] = 't'; numhunk = -2; } else { - fmtbuf[i] = 'x'; hunksize++; comma = ':'; numhunk = 0; @@ -414,7 +413,7 @@ pretty_print_option(unsigned int code, struct option_data *option, opcount = snprintf(op, opleft, "%d", *dp); dp++; break; - case 'x': + case 'X': opcount = snprintf(op, opleft, "%x", *dp); dp++; break; |