ps(1): Remove dead initialization.
authorSascha Wildner <saw@online.de>
Sat, 24 Oct 2009 08:14:00 +0000 (10:14 +0200)
committerSascha Wildner <saw@online.de>
Sat, 24 Oct 2009 08:14:00 +0000 (10:14 +0200)
bin/ps/print.c
bin/ps/ps.c

index 078aa19..6908e06 100644 (file)
@@ -97,12 +97,9 @@ printheader(void)
 void
 command(const KINFO *k, const struct varent *vent)
 {
 void
 command(const KINFO *k, const struct varent *vent)
 {
-       const VAR *v;
        int left;
        char *cp, *vis_env, *vis_args;
 
        int left;
        char *cp, *vis_env, *vis_args;
 
-       v = vent->var;
-
        if (cflag) {
                /* Don't pad the last field. */
                if (STAILQ_NEXT(vent, link) == NULL)
        if (cflag) {
                /* Don't pad the last field. */
                if (STAILQ_NEXT(vent, link) == NULL)
index 82e3e63..080aabd 100644 (file)
@@ -525,11 +525,9 @@ static void
 sizevars(void)
 {
        struct varent *vent;
 sizevars(void)
 {
        struct varent *vent;
-       const VAR *v;
        int i;
 
        STAILQ_FOREACH(vent, &var_head, link) {
        int i;
 
        STAILQ_FOREACH(vent, &var_head, link) {
-               v = vent->var;
                i = strlen(vent->header);
                if (vent->width < i)
                        vent->width = i;
                i = strlen(vent->header);
                if (vent->width < i)
                        vent->width = i;