summaryrefslogtreecommitdiffstats
path: root/games/factor
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-08-14 18:34:48 +0000
committerguenther <guenther@openbsd.org>2016-08-14 18:34:48 +0000
commitf5cc6d1c3ee3423fc1397948e8c55d5721fdff84 (patch)
tree68e9b08d71ebcb54cc47eba7b9889e44e512141d /games/factor
parentRemove many unnecessary casts. Verified by comparing generated code on (diff)
downloadwireguard-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 'games/factor')
-rw-r--r--games/factor/factor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/factor/factor.c b/games/factor/factor.c
index 4b00a043207..4c1cfd4150e 100644
--- a/games/factor/factor.c
+++ b/games/factor/factor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: factor.c,v 1.28 2016/07/11 18:30:21 tb Exp $ */
+/* $OpenBSD: factor.c,v 1.29 2016/08/14 18:34:48 guenther Exp $ */
/* $NetBSD: factor.c,v 1.5 1995/03/23 08:28:07 cgd Exp $ */
/*
@@ -114,7 +114,7 @@ main(int argc, char *argv[])
if (*p == '-')
errx(1, "negative numbers aren't permitted.");
errno = 0;
- val = strtouq(buf, &p, 10);
+ val = strtoull(buf, &p, 10);
if (errno)
err(1, "%s", buf);
for (; isblank((unsigned char)*p); ++p)
@@ -129,7 +129,7 @@ main(int argc, char *argv[])
if (argv[0][0] == '-')
errx(1, "negative numbers aren't permitted.");
errno = 0;
- val = strtouq(argv[0], &p, 10);
+ val = strtoull(argv[0], &p, 10);
if (errno)
err(1, "%s", argv[0]);
if (*p != '\0')