summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-14 18:34:49 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-14 18:34:49 +0000
commit3f655d51d173e28f51350a362ca11460660bc20f (patch)
treeca0d8805f2a1e76176a7633fddd1071a96673d55 /games
parent9045d5e4e07d30d5b9e6e2f4b9f0db20f306ca4e (diff)
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')
-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')