/* vi: set sw=4 ts=4: */
/*
- * Copyright (C) 2003 Erik Andersen <andersee@debian.org>
+ * Copyright (C) 2003-2004 Erik Andersen <andersen@codepoet.org>
*/
#include "busybox.h"
-extern long bb_xgetlarg(char *arg, int base, long lower, long upper)
+extern long bb_xgetlarg(const char *arg, int base, long lower, long upper)
{
long result;
char *endptr;
assert(arg!=NULL);
- /* Don't allow leading whitespace. */
- if ((isspace)(*arg)) { /* Use an actual funciton call for minimal size. */
+ /* Don't allow leading whitespace.
+ * Wrap isspace in () to make sure we call the
+ * function rather than the macro. */
+ if ((isspace)(*arg)) {
bb_show_usage();
}