summaryrefslogtreecommitdiff
path: root/applets/applets.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-04 14:54:36 +0000
committerDenis Vlasenko2007-05-04 14:54:36 +0000
commit3349fc4da948eb1393cd9201cd9c2615c0056c97 (patch)
tree9dbee1bc6b58c09ada9914870ec3ef11bcaf868d /applets/applets.c
parent400c5b6fc6aea218fdfbc14ac709a848d9c696b0 (diff)
downloadbusybox-3349fc4da948eb1393cd9201cd9c2615c0056c97.zip
busybox-3349fc4da948eb1393cd9201cd9c2615c0056c97.tar.gz
applets: fix compile-time warning
Diffstat (limited to 'applets/applets.c')
-rw-r--r--applets/applets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 32c63d1..307c8b3 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -337,7 +337,6 @@ static inline void parse_config_file(void)
#if ENABLE_FEATURE_SUID
static void check_suid(const struct bb_applet *applet)
{
- uid_t uid;
gid_t rgid; /* real gid */
if (ruid == 0) /* set by parse_config_file() */
@@ -346,6 +345,7 @@ static void check_suid(const struct bb_applet *applet)
#if ENABLE_FEATURE_SUID_CONFIG
if (suid_cfg_readable) {
+ uid_t uid;
struct BB_suid_config *sct;
mode_t m;