diff options
author | gad <gad@FreeBSD.org> | 2001-03-16 21:54:12 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2001-03-16 21:54:12 +0000 |
commit | 53289ebd9275a126c7ea4ff406f5886619d948cc (patch) | |
tree | 353ed62f9d5ecfdd672ea2c8f07ff05181450737 /usr.sbin | |
parent | 4ce4255f83eebf420773e3c0825178f061483066 (diff) | |
download | FreeBSD-src-53289ebd9275a126c7ea4ff406f5886619d948cc.zip FreeBSD-src-53289ebd9275a126c7ea4ff406f5886619d948cc.tar.gz |
Fix a number of warnings that come up when compiling with BDECFLAGS.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/lpr/lpd/modes.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/lpr/lpd/modes.c b/usr.sbin/lpr/lpd/modes.c index 4bb2ea0..517b02e 100644 --- a/usr.sbin/lpr/lpd/modes.c +++ b/usr.sbin/lpr/lpd/modes.c @@ -46,9 +46,9 @@ static const char rcsid[] = #include "extern.h" struct modes { - char *name; - long set; - long unset; + const char *name; + const long set; + const long unset; }; /* @@ -94,7 +94,7 @@ struct modes cmodes[] = { { "-rtsflow", 0, CRTS_IFLOW }, { "mdmbuf", MDMBUF, 0 }, { "-mdmbuf", 0, MDMBUF }, - { NULL }, + { NULL, 0, 0}, }; struct modes imodes[] = { @@ -130,7 +130,7 @@ struct modes imodes[] = { { "-decctlq", IXANY, 0 }, { "imaxbel", IMAXBEL, 0 }, { "-imaxbel", 0, IMAXBEL }, - { NULL }, + { NULL, 0, 0}, }; struct modes lmodes[] = { @@ -182,7 +182,7 @@ struct modes lmodes[] = { { "-nokerninfo",0, NOKERNINFO }, { "kerninfo", 0, NOKERNINFO }, { "-kerninfo", NOKERNINFO, 0 }, - { NULL }, + { NULL, 0, 0}, }; struct modes omodes[] = { @@ -196,7 +196,7 @@ struct modes omodes[] = { { "-tabs", OXTABS, 0 }, { "oxtabs", OXTABS, 0 }, { "-oxtabs", 0, OXTABS }, - { NULL }, + { NULL, 0, 0}, }; #define CHK(name, s) (*name == s[0] && !strcmp(name, s)) |