summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2012-11-05 14:18:36 +0100
committerDenys Vlasenko2012-11-05 14:18:36 +0100
commita803bfa0f06c10d8581bd457b9ba937466c73588 (patch)
treec4a6b83f2d4e847683f169bf8a0e1870df6b4400 /networking
parent11181335f9a97feddb30da4d09f9cd3739b8badd (diff)
downloadbusybox-a803bfa0f06c10d8581bd457b9ba937466c73588.zip
busybox-a803bfa0f06c10d8581bd457b9ba937466c73588.tar.gz
ifupdown: remove unused errno assignments
function old new delta execute 607 571 -36 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 9fc1266..650cc70 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -49,9 +49,6 @@
#include <fnmatch.h>
#define MAX_OPT_DEPTH 10
-#define EUNBALBRACK 10001
-#define EUNDEFVAR 10002
-#define EUNBALPER 10000
#if ENABLE_FEATURE_IFUPDOWN_MAPPING
#define MAX_INTERFACE_LENGTH 10
@@ -283,7 +280,7 @@ static char *parse(const char *command, struct interface_defn_t *ifd)
command++;
nextpercent = strchr(command, '%');
if (!nextpercent) {
- errno = EUNBALPER;
+ /* Unterminated %var% */
free(result);
return NULL;
}
@@ -328,13 +325,13 @@ static char *parse(const char *command, struct interface_defn_t *ifd)
}
if (opt_depth > 1) {
- errno = EUNBALBRACK;
+ /* Unbalanced bracket */
free(result);
return NULL;
}
if (!okay[0]) {
- errno = EUNDEFVAR;
+ /* Undefined variable and we aren't in a bracket */
free(result);
return NULL;
}