summaryrefslogtreecommitdiffstats
path: root/pw/pw.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-30 06:14:47 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-30 06:14:47 +0000
commit36bdd64fb414cbcadb8abf0a510448331fcc6509 (patch)
tree4d5ab0d89a3b40271799d36418a1fbc5c6adaf7a /pw/pw.h
parent0b97711c3096a43547acfab6bc8df244187bf965 (diff)
downloadpw-darwin-36bdd64fb414cbcadb8abf0a510448331fcc6509.tar.gz
pw-darwin-36bdd64fb414cbcadb8abf0a510448331fcc6509.tar.zst
pw-darwin-36bdd64fb414cbcadb8abf0a510448331fcc6509.zip
Improve strtounum
Fix many style bugs Better variable naming Use C99 'restrict' were apropriate Fix potential errno race Submitted by: bde
Diffstat (limited to 'pw/pw.h')
-rw-r--r--pw/pw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw.h b/pw/pw.h
index 3ab3c74..a22572e 100644
--- a/pw/pw.h
+++ b/pw/pw.h
@@ -103,5 +103,5 @@ char *pw_pwcrypt(char *password);
extern const char *Modes[];
extern const char *Which[];
-uintmax_t strtounum(const char *numstr, uintmax_t minval, uintmax_t maxval,
- const char **errmsg);
+uintmax_t strtounum(const char * __restrict, uintmax_t, uintmax_t,
+ const char ** __restrict);