diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index bd3afc0..cb674e6 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -1852,16 +1852,18 @@ _STPUTC(int c, char *p) /* * prefix -- see if pfx is a prefix of string. */ -static char * +static ALWAYS_INLINE char * prefix(const char *string, const char *pfx) { + return is_prefixed_with(string, pfx); +#if 0 /* dash implementation: */ while (*pfx) { if (*pfx++ != *string++) return NULL; } return (char *) string; +#endif } - /* * Check for a valid number. This should be elsewhere. */ |