aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/shell/ash.c b/shell/ash.c
index dde36dd7c..96d2433d3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2260,30 +2260,6 @@ getoptsreset(const char *value)
2260#endif 2260#endif
2261 2261
2262/* 2262/*
2263 * Compares two strings up to the first = or '\0'. The first
2264 * string must be terminated by '='; the second may be terminated by
2265 * either '=' or '\0'.
2266 */
2267static int
2268varcmp(const char *p, const char *q)
2269{
2270 int c, d;
2271
2272 while ((c = *p) == (d = *q)) {
2273 if (c == '\0' || c == '=')
2274 goto out;
2275 p++;
2276 q++;
2277 }
2278 if (c == '=')
2279 c = '\0';
2280 if (d == '=')
2281 d = '\0';
2282 out:
2283 return c - d;
2284}
2285
2286/*
2287 * Find the appropriate entry in the hash table from the name. 2263 * Find the appropriate entry in the hash table from the name.
2288 */ 2264 */
2289static struct var ** 2265static struct var **