aboutsummaryrefslogtreecommitdiff
path: root/src/hyper/macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hyper/macro.c')
-rw-r--r--src/hyper/macro.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/hyper/macro.c b/src/hyper/macro.c
index cdabf8f8..596506c6 100644
--- a/src/hyper/macro.c
+++ b/src/hyper/macro.c
@@ -86,14 +86,14 @@ scan_HyperDoc(void)
}
int
-number(char *str)
+number(const char *str)
{
- char *t = str;
-
- while (*t)
- if (!isdigit(*t++))
- return 0;
- return 1;
+ const char *t = str;
+
+ while (*t)
+ if (!isdigit(*t++))
+ return 0;
+ return 1;
}
/* Parse a given macro given the pointer to the unlaoded macro ** */