From a0a7003193b14d2965fdeb6e07cd20605d179e1f Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Thu, 29 Mar 2012 23:00:30 +0200 Subject: [PATCH] Added missing NULL sentinels in switches array. --- uip/inc.c | 1 + uip/mhlist.c | 4 ---- uip/mhshow.c | 3 --- uip/mhtest.c | 4 ---- uip/msgchk.c | 1 + 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/uip/inc.c b/uip/inc.c index 5142ae3..2fbb9b6 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -64,6 +64,7 @@ static struct swit switches[] = { { "version", 0 }, #define HELPSW 12 { "help", 0 }, + { NULL, 0 }, }; /* diff --git a/uip/mhlist.c b/uip/mhlist.c index 3104e6f..45f3e9d 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -49,10 +49,6 @@ static struct swit switches[] = { { "version", 0 }, #define HELPSW 14 { "help", 0 }, - -/* -** switches for debugging -*/ #define DEBUGSW 15 { "debug", -5 }, { NULL, 0 } diff --git a/uip/mhshow.c b/uip/mhshow.c index 4a07d01..b43d5a8 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -47,9 +47,6 @@ static struct swit switches[] = { { "version", 0 }, #define HELPSW 13 { "help", 0 }, -/* -** switches for debugging -*/ #define DEBUGSW 14 { "debug", -5 }, { NULL, 0 } diff --git a/uip/mhtest.c b/uip/mhtest.c index 37174de..164d390 100644 --- a/uip/mhtest.c +++ b/uip/mhtest.c @@ -43,10 +43,6 @@ static struct swit switches[] = { { "version", 0 }, #define HELPSW 11 { "help", 0 }, - -/* -** switches for debugging -*/ #define DEBUGSW 12 { "debug", -5 }, { NULL, 0 } diff --git a/uip/msgchk.c b/uip/msgchk.c index e2707d3..ee81226 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -23,6 +23,7 @@ static struct swit switches[] = { { "version", 0 }, #define HELPSW 5 { "help", 0 }, + { NULL, 0 }, }; /* -- 1.7.10.4