switches need to be renumbered following removal of some switches so,
authorOliver Kiddle <okiddle@yahoo.co.uk>
Tue, 14 Dec 2010 17:04:01 +0000 (18:04 +0100)
committerOliver Kiddle <okiddle@yahoo.co.uk>
Tue, 14 Dec 2010 17:04:28 +0000 (18:04 +0100)
e.g. inc -version was not working

uip/inc.c
uip/msgchk.c

index 38ab687..f461dd8 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -78,29 +78,29 @@ static struct swit switches[] = {
     { "pack file", POPminc (-4) },
 #define        NPACKSW                   10
     { "nopack", POPminc (-6) },
-#define PORTSW                   13
+#define PORTSW                   11
     { "port name/number", POPminc (-4) },
-#define        SILSW                     15
+#define        SILSW                     12
     { "silent", 0 },
-#define        NSILSW                    16
+#define        NSILSW                    13
     { "nosilent", 0 },
-#define        TRNCSW                    17
+#define        TRNCSW                    14
     { "truncate", 0 },
-#define        NTRNCSW                   18
+#define        NTRNCSW                   15
     { "notruncate", 0 },
-#define        WIDTHSW                   19
+#define        WIDTHSW                   16
     { "width columns", 0 },
-#define VERSIONSW                 20
+#define VERSIONSW                 17
     { "version", 0 },
-#define        HELPSW                    21
+#define        HELPSW                    18
     { "help", 0 },
-#define SNOOPSW                   22
+#define SNOOPSW                   19
     { "snoop", -5 },
-#define SASLSW                    24
+#define SASLSW                    20
     { "sasl", SASLminc(-4) },
-#define SASLMECHSW                25
+#define SASLMECHSW                21
     { "saslmech", SASLminc(-8) },
-#define PROXYSW                   26
+#define PROXYSW                   22
     { "proxy command", POPminc(-5) },
     { NULL, 0 }
 };
index fa2336f..03525c8 100644 (file)
@@ -41,19 +41,19 @@ static struct swit switches[] = {
     { "host hostname", POPminc (-4) },
 #define        USERSW                   5
     { "user username", POPminc (-4) },
-#define PORTSW                  8
+#define PORTSW                  6
     { "port name/number", POPminc(-4) },
-#define VERSIONSW               10
+#define VERSIONSW                7
     { "version", 0 },
-#define        HELPSW                  11
+#define        HELPSW                   8
     { "help", 0 },
-#define SNOOPSW                 12
+#define SNOOPSW                  9
     { "snoop", -5 },
-#define SASLSW                  14
+#define SASLSW                  10
     { "sasl", SASLminc(-4) },
-#define SASLMECHSW             15
+#define SASLMECHSW             11
     { "saslmech", SASLminc(-5) },
-#define PROXYSW                16
+#define PROXYSW                12
     { "proxy command", POPminc(-5) },
     { NULL, 0 }
 };