diff options
author | Karel Zak | 2012-03-21 19:35:22 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-21 19:35:22 +0100 |
commit | 807e40c6557ecf52a668b08df0f528bbcdcb33d4 (patch) | |
tree | 31aff60fadfcbb19b5cd56ea97c99d269ddbf396 /text-utils/hexdump.h | |
parent | libblkid: generate pseudo-UUID for ISO9660 image file (diff) | |
download | kernel-qcow2-util-linux-807e40c6557ecf52a668b08df0f528bbcdcb33d4.tar.gz kernel-qcow2-util-linux-807e40c6557ecf52a668b08df0f528bbcdcb33d4.tar.xz kernel-qcow2-util-linux-807e40c6557ecf52a668b08df0f528bbcdcb33d4.zip |
hexdump: use strtosize() for -n and -s
strtosize() is based on uintmax_t and supports all possible suffixes
(B,M,G,T ...)
Reported-by: Simon de Vlieger <simon@ikanobori.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/hexdump.h')
-rw-r--r-- | text-utils/hexdump.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/hexdump.h b/text-utils/hexdump.h index 52a64bfe9..622407627 100644 --- a/text-utils/hexdump.h +++ b/text-utils/hexdump.h @@ -75,7 +75,7 @@ extern FS *fshead; /* head of format strings list */ extern int blocksize; /* data block size */ extern int deprecated; /* od compatibility */ extern int exitval; /* final exit value */ -extern int length; /* max bytes to read */ +extern ssize_t length; /* max bytes to read */ extern off_t skip; /* bytes to skip */ enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */ |