summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMatt Kraai2001-02-05 17:50:03 +0000
committerMatt Kraai2001-02-05 17:50:03 +0000
commita164c647acc613fe199a646dc5075c097f51a4a4 (patch)
treebf64d8b5c0592b0276d5c1c5471df27e7c88607b /utility.c
parent925edb828df9665714d2ce71a6ef8242bbf4eb15 (diff)
downloadbusybox-a164c647acc613fe199a646dc5075c097f51a4a4.zip
busybox-a164c647acc613fe199a646dc5075c097f51a4a4.tar.gz
Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utility.c b/utility.c
index f99c613..aa1fa94 100644
--- a/utility.c
+++ b/utility.c
@@ -1696,9 +1696,10 @@ struct BB_applet *find_applet_by_name(const char *name)
}
#if defined BB_DD || defined BB_TAIL
-unsigned long parse_number(const char *numstr, struct suffix_mult *suffixes)
+unsigned long parse_number(const char *numstr,
+ const struct suffix_mult *suffixes)
{
- struct suffix_mult *sm;
+ const struct suffix_mult *sm;
unsigned long int ret;
int len;
char *end;