diff options
-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 bd3afc0c8..cb674e69c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -1852,16 +1852,18 @@ _STPUTC(int c, char *p) | |||
1852 | /* | 1852 | /* |
1853 | * prefix -- see if pfx is a prefix of string. | 1853 | * prefix -- see if pfx is a prefix of string. |
1854 | */ | 1854 | */ |
1855 | static char * | 1855 | static ALWAYS_INLINE char * |
1856 | prefix(const char *string, const char *pfx) | 1856 | prefix(const char *string, const char *pfx) |
1857 | { | 1857 | { |
1858 | return is_prefixed_with(string, pfx); | ||
1859 | #if 0 /* dash implementation: */ | ||
1858 | while (*pfx) { | 1860 | while (*pfx) { |
1859 | if (*pfx++ != *string++) | 1861 | if (*pfx++ != *string++) |
1860 | return NULL; | 1862 | return NULL; |
1861 | } | 1863 | } |
1862 | return (char *) string; | 1864 | return (char *) string; |
1865 | #endif | ||
1863 | } | 1866 | } |
1864 | |||
1865 | /* | 1867 | /* |
1866 | * Check for a valid number. This should be elsewhere. | 1868 | * Check for a valid number. This should be elsewhere. |
1867 | */ | 1869 | */ |