aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/hexdump
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-09-01 22:42:47 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-09-01 22:42:47 +0000
commit7a27e6571bd5e8d2f5ae270025453040078ae6eb (patch)
tree6ec2469315c71db37efc37266d18fd2092e7fd43 /usr.bin/hexdump
parentdde24897d2fed06031eee9dc62db605b1b753c01 (diff)
Notes
Diffstat (limited to 'usr.bin/hexdump')
-rw-r--r--usr.bin/hexdump/display.c2
-rw-r--r--usr.bin/hexdump/hexsyntax.c2
-rw-r--r--usr.bin/hexdump/odsyntax.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/hexdump/display.c b/usr.bin/hexdump/display.c
index 1b281961e25df..a09a5715e4f65 100644
--- a/usr.bin/hexdump/display.c
+++ b/usr.bin/hexdump/display.c
@@ -356,7 +356,7 @@ doskip(fname, statok)
}
}
if (S_ISREG(sb.st_mode)) {
- if (fseek(stdin, skip, SEEK_SET))
+ if (fseeko(stdin, skip, SEEK_SET))
err(1, "%s", fname);
address += skip;
skip = 0;
diff --git a/usr.bin/hexdump/hexsyntax.c b/usr.bin/hexdump/hexsyntax.c
index f3bf5878dafec..72ec69f338ef8 100644
--- a/usr.bin/hexdump/hexsyntax.c
+++ b/usr.bin/hexdump/hexsyntax.c
@@ -104,7 +104,7 @@ newsyntax(argc, argvp)
add("\"%07.7_ax \" 8/2 \" %06o \" \"\\n\"");
break;
case 's':
- if ((skip = strtol(optarg, &p, 0)) < 0)
+ if ((skip = strtoll(optarg, &p, 0)) < 0)
errx(1, "%s: bad skip value", optarg);
switch(*p) {
case 'b':
diff --git a/usr.bin/hexdump/odsyntax.c b/usr.bin/hexdump/odsyntax.c
index 65a160e64453f..8823a9cf34f5e 100644
--- a/usr.bin/hexdump/odsyntax.c
+++ b/usr.bin/hexdump/odsyntax.c
@@ -214,7 +214,7 @@ odoffset(argc, argvp)
base = 10;
}
- skip = strtol(num, (char **)&end, base ? base : 8);
+ skip = strtoll(num, (char **)&end, base ? base : 8);
/* if end isn't the same as p, we got a non-octal digit */
if (end != p) {