]> granicus.if.org Git - procps-ng/commitdiff
w: Remove unreachable l option code
authorCraig Small <csmall@dropbear.xyz>
Thu, 11 Mar 2021 10:48:14 +0000 (21:48 +1100)
committerCraig Small <csmall@dropbear.xyz>
Thu, 11 Mar 2021 10:48:14 +0000 (21:48 +1100)
@ruihongw quite rightly pointed out we removed the l option
from the man page and getopt but the iunreachable case statement
remained.

References:
 commit 94468ac0b3be07495c1f4eccc9806bb812d93718
 #162

Signed-off-by: Craig Small <csmall@dropbear.xyz>
w.c

diff --git a/w.c b/w.c
index 7813114a229d3a09495636624e9fdabbcb81d1c8..81de37efa0cab47a1cdbd7e3b30a225f0a042247 100644 (file)
--- a/w.c
+++ b/w.c
@@ -588,9 +588,6 @@ int main(int argc, char **argv)
                case 'h':
                        header = 0;
                        break;
-               case 'l':
-                       longform = 1;
-                       break;
                case 's':
                        longform = 0;
                        break;