aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-22 07:33:53 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-22 07:33:53 +0000
commitb62bd7b261bbfadcaeb7c5fcec8b4921bf5379a6 (patch)
tree58577a066a7c5c79fbf7ceec2e981b5d037c0589 /util-linux/mdev.c
parent5415c856eaccd1bc5d064022770a288f43b2e94f (diff)
downloadbusybox-b62bd7b261bbfadcaeb7c5fcec8b4921bf5379a6.tar.gz
- unused variables if !ENABLE_FEATURE_MDEV_RENAME_REGEXP
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 7ad55c8af..461d3c8c1 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -170,8 +170,11 @@ static void make_device(char *path, int delete)
break;
aliaslink = *val;
if (aliaslink == '>' || aliaslink == '=') {
- char *s, *p;
+ char *s;
+#if ENABLE_FEATURE_MDEV_RENAME_REGEXP
+ char *p;
unsigned i, n;
+#endif
char *a = val;
s = strchr(val, ' ');
val = (s && s[1]) ? s+1 : NULL;