remove redundant ENABLE_DESKTOP in procps/ps.c
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Sun, 5 Sep 2010 12:34:42 +0000 (14:34 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Sun, 5 Sep 2010 13:49:37 +0000 (15:49 +0200)
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
procps/ps.c

index 305381eb933b7122b1805b484c4ca16fd06c5454..48b55a7858eff03b30f8ae8c388ea4cba252a9f5 100644 (file)
@@ -338,24 +338,16 @@ static ps_out_t* new_out_t(void)
 static const ps_out_t* find_out_spec(const char *name)
 {
        unsigned i;
-#if ENABLE_DESKTOP
        char buf[ARRAY_SIZE(out_spec)*7 + 1];
        char *p = buf;
-#endif
 
        for (i = 0; i < ARRAY_SIZE(out_spec); i++) {
                if (strncmp(name, out_spec[i].name6, 6) == 0)
                        return &out_spec[i];
-#if ENABLE_DESKTOP
                p += sprintf(p, "%.6s,", out_spec[i].name6);
-#endif
        }
-#if ENABLE_DESKTOP
        p[-1] = '\0';
        bb_error_msg_and_die("bad -o argument '%s', supported arguments: %s", name, buf);
-#else
-       bb_error_msg_and_die("bad -o argument '%s'");
-#endif
 }
 
 static void parse_o(char* opt)