[ntpsec commit] Typo strtoll(3) for strtol(3) was harmless, but possibly confusing.

Eric S. Raymond esr at ntpsec.org
Fri Oct 23 09:56:31 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    f713156b0d692e2788f70cfe0f89b9ccf5f7f509
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=f713156b0d692e2788f70cfe0f89b9ccf5f7f509

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Fri Oct 23 05:56:19 2015 -0400

Typo strtoll(3) for strtol(3) was harmless, but possibly confusing.

---

 ntpq/ntpq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c
index a8eb0e6..f3fb3cc 100644
--- a/ntpq/ntpq.c
+++ b/ntpq/ntpq.c
@@ -2012,7 +2012,7 @@ decodeint(
 {
 	errno = 0;
 	/* magic 0 enables hex/octal recognition */
-	*val = strtoll(str, NULL, 0);
+	*val = strtol(str, NULL, 0);
 	return !(errno == EINVAL || errno == ERANGE);
 }
 



More information about the vc mailing list