aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-21 16:15:10 +0000
committerOmar Polo <op@omarpolo.com>2021-01-21 16:15:10 +0000
commitea28a44931e2a38553fd2217f8471216da9b5ca8 (patch)
treee7d9afe7b9fcdcc50682a2d9c837abb06b289f78 /gmid.c
parent95210bb3961727e034b99912a65700f6ace49753 (diff)
const-ify parameter to strtonum
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmid.c b/gmid.c
index bfdf9a8..227c60b 100644
--- a/gmid.c
+++ b/gmid.c
@@ -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)