/*
- * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2008 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
extern int argstrcpy(char *from, char *to);
extern int getval(char *s, int *val);
-int argstrcpy2(char *from,char *to, unsigned maxlen);
+static int argstrcpy2(char *from,char *to, unsigned maxlen);
#define NUM 0
#define STR 1
+#if !defined(__LP64__) && !defined(__arm__)
boolean_t
PE_parse_boot_arg(
const char *arg_string,
return PE_parse_boot_argn(arg_string, arg_ptr, max_len);
}
+#endif
boolean_t
PE_parse_boot_argn(
arg_found = FALSE;
- while(isargsep(*args)) args++;
+ while(*args && isargsep(*args)) args++;
while (*args)
{
arg_found = TRUE;
break;
} else {
- while (isargsep (*cp))
+ while (*cp && isargsep (*cp))
cp++;
if (*cp == '=' && c != '=') {
args = cp+1;
return(i);
}
-int
+static int
argstrcpy2(
char *from,
char *to,