diff options
author | 2016-08-14 18:34:48 +0000 | |
---|---|---|
committer | 2016-08-14 18:34:48 +0000 | |
commit | f5cc6d1c3ee3423fc1397948e8c55d5721fdff84 (patch) | |
tree | 68e9b08d71ebcb54cc47eba7b9889e44e512141d /usr.bin/cmp | |
parent | Remove many unnecessary casts. Verified by comparing generated code on (diff) | |
download | wireguard-openbsd-f5cc6d1c3ee3423fc1397948e8c55d5721fdff84.tar.xz wireguard-openbsd-f5cc6d1c3ee3423fc1397948e8c55d5721fdff84.zip |
Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
Fix a type mismatch in ftp's "page" command and could make transfers restart
at the wrong position.
ok and a ull->ll tweak from natano@, ok tedu@
Diffstat (limited to 'usr.bin/cmp')
-rw-r--r-- | usr.bin/cmp/cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c index 82a9c4b898f..58f6758ece0 100644 --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmp.c,v 1.14 2015/12/29 19:04:46 gsoares Exp $ */ +/* $OpenBSD: cmp.c,v 1.15 2016/08/14 18:34:48 guenther Exp $ */ /* $NetBSD: cmp.c,v 1.7 1995/09/08 03:22:56 tls Exp $ */ /* @@ -115,8 +115,8 @@ main(int argc, char *argv[]) if (pledge("stdio", NULL) == -1) err(ERR_EXIT, "pledge"); - skip1 = argc > 2 ? strtoq(argv[2], NULL, 0) : 0; - skip2 = argc == 4 ? strtoq(argv[3], NULL, 0) : 0; + skip1 = argc > 2 ? strtoll(argv[2], NULL, 0) : 0; + skip2 = argc == 4 ? strtoll(argv[3], NULL, 0) : 0; if (!special) { if (fstat(fd1, &sb1)) { |