diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-30 06:14:47 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-30 06:14:47 +0000 |
| commit | 118a862383488360f366603cc32994fd65718474 (patch) | |
| tree | c499fea9d3fea198958a8427dde46c7d3b4207c6 /pw/pw.h | |
| parent | def310326d4348f6b6e91e3f4323245d3e9f0ae9 (diff) | |
| download | pw-darwin-118a862383488360f366603cc32994fd65718474.tar.gz pw-darwin-118a862383488360f366603cc32994fd65718474.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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
