From 7be9c056ceb3cbdbd3a5e5178e4257559e388442 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 18 Apr 2002 12:53:39 +0000 Subject: [PATCH] Backed out the style bugs in rev.1.17: - don't use unusual indentation for 39 lines of declarations when only 2 of the lines benefit from it. - don't use __DECONST(). This was the one use of it in the tree, and it was just wrong. It was used to hide the warning about tgetnum() having the wrong prototype (missing a `const') due to libncurses being misconfigured. libncurses has been fixed, so the original code now compiles cleanly with WARNS=4. --- usr.bin/msgs/msgs.c | 82 ++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index 5dee2b8181a8..64a547ab3b62 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -109,36 +109,36 @@ __FBSDID("$FreeBSD$"); typedef char bool; -FILE *msgsrc; -FILE *newmsg; -const char *sep = "-"; -char inbuf[BUFSIZ]; -char fname[MAXPATHLEN]; -char cmdbuf[MAXPATHLEN + MAXPATHLEN]; -char subj[128]; -char from[128]; -char date[128]; -char *ptr; -char *in; -bool local; -bool ruptible; -bool totty; -bool seenfrom; -bool seensubj; -bool blankline; -bool printing = NO; -bool mailing = NO; -bool quitit = NO; -bool sending = NO; -bool intrpflg = NO; -uid_t uid; -int msg; -int prevmsg; -int lct; -int nlines; -int Lpp = 0; -time_t t; -time_t keep; +FILE *msgsrc; +FILE *newmsg; +const char *sep = "-"; +char inbuf[BUFSIZ]; +char fname[MAXPATHLEN]; +char cmdbuf[MAXPATHLEN + MAXPATHLEN]; +char subj[128]; +char from[128]; +char date[128]; +char *ptr; +char *in; +bool local; +bool ruptible; +bool totty; +bool seenfrom; +bool seensubj; +bool blankline; +bool printing = NO; +bool mailing = NO; +bool quitit = NO; +bool sending = NO; +bool intrpflg = NO; +uid_t uid; +int msg; +int prevmsg; +int lct; +int nlines; +int Lpp = 0; +time_t t; +time_t keep; /* option initialization */ bool hdrs = NO; @@ -152,16 +152,16 @@ bool lastcmd = NO; jmp_buf tstpbuf; -void ask(const char *); -void gfrsub(FILE *); -int linecnt(FILE *); -int main(int, char *[]); -int next(char *); -char *nxtfld(unsigned char *); -void onsusp(int); -void onintr(int); -void prmesg(int); -static void usage(void); +void ask(const char *); +void gfrsub(FILE *); +int linecnt(FILE *); +int main(int, char *[]); +int next(char *); +char *nxtfld(unsigned char *); +void onsusp(int); +void onintr(int); +void prmesg(int); +static void usage(void); int main(argc, argv) @@ -450,7 +450,7 @@ int argc; char *argv[]; Lpp = win.ws_row; if (Lpp <= 0) { if (tgetent(inbuf, getenv("TERM")) <= 0 - || (Lpp = tgetnum(__DECONST(char *, "li"))) <= 0) { + || (Lpp = tgetnum("li")) <= 0) { Lpp = NLINES; } }