Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/hexdump
Module Name: src
Committed By: apb
Date: Sun Jan 18 21:34:32 UTC 2009
Modified Files:
src/usr.bin/hexdump: display.c parse.c
Log Message:
Integer values, no matter what their width, are cast to int64_t or
uint64_t for printing. Because of this, parse.c:rewrite() should use
PRI[diouxX]64 as the printf format; the previous revision which used
"lld" and friends was a temporary measure. We assume that PRId64 ends
with 'd', PRIx64 ends with 'x', etc.
In display.c:display(), change some u_intNN_t types to C99 standard
uintNN_t types, and consistently cast to [u]int64_t when printing
integer values (even in two cases where it's not really necessary but it
makes the code look more consistent).
To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 src/usr.bin/hexdump/display.c
cvs rdiff -r1.25 -r1.26 src/usr.bin/hexdump/parse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index