diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-21 16:15:10 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-21 16:15:10 +0000 |
commit | ea28a44931e2a38553fd2217f8471216da9b5ca8 (patch) | |
tree | e7d9afe7b9fcdcc50682a2d9c837abb06b289f78 /gmid.c | |
parent | 95210bb3961727e034b99912a65700f6ace49753 (diff) |
const-ify parameter to strtonum
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -199,8 +199,8 @@ yyerror(const char *msg) int parse_portno(const char *p) { - char *errstr; - int n; + const char *errstr; + int n; n = strtonum(p, 0, UINT16_MAX, &errstr); if (errstr != NULL) |