Fix a number of warnings that come up when compiling with BDECFLAGS.

This commit is contained in:
Garance A Drosehn 2001-03-16 21:54:12 +00:00
parent 283da0012f
commit 9c83e8862e

View File

@ -46,9 +46,9 @@ static const char rcsid[] =
#include "extern.h" #include "extern.h"
struct modes { struct modes {
char *name; const char *name;
long set; const long set;
long unset; const long unset;
}; };
/* /*
@ -94,7 +94,7 @@ struct modes cmodes[] = {
{ "-rtsflow", 0, CRTS_IFLOW }, { "-rtsflow", 0, CRTS_IFLOW },
{ "mdmbuf", MDMBUF, 0 }, { "mdmbuf", MDMBUF, 0 },
{ "-mdmbuf", 0, MDMBUF }, { "-mdmbuf", 0, MDMBUF },
{ NULL }, { NULL, 0, 0},
}; };
struct modes imodes[] = { struct modes imodes[] = {
@ -130,7 +130,7 @@ struct modes imodes[] = {
{ "-decctlq", IXANY, 0 }, { "-decctlq", IXANY, 0 },
{ "imaxbel", IMAXBEL, 0 }, { "imaxbel", IMAXBEL, 0 },
{ "-imaxbel", 0, IMAXBEL }, { "-imaxbel", 0, IMAXBEL },
{ NULL }, { NULL, 0, 0},
}; };
struct modes lmodes[] = { struct modes lmodes[] = {
@ -182,7 +182,7 @@ struct modes lmodes[] = {
{ "-nokerninfo",0, NOKERNINFO }, { "-nokerninfo",0, NOKERNINFO },
{ "kerninfo", 0, NOKERNINFO }, { "kerninfo", 0, NOKERNINFO },
{ "-kerninfo", NOKERNINFO, 0 }, { "-kerninfo", NOKERNINFO, 0 },
{ NULL }, { NULL, 0, 0},
}; };
struct modes omodes[] = { struct modes omodes[] = {
@ -196,7 +196,7 @@ struct modes omodes[] = {
{ "-tabs", OXTABS, 0 }, { "-tabs", OXTABS, 0 },
{ "oxtabs", OXTABS, 0 }, { "oxtabs", OXTABS, 0 },
{ "-oxtabs", 0, OXTABS }, { "-oxtabs", 0, OXTABS },
{ NULL }, { NULL, 0, 0},
}; };
#define CHK(name, s) (*name == s[0] && !strcmp(name, s)) #define CHK(name, s) (*name == s[0] && !strcmp(name, s))