summaryrefslogtreecommitdiffstats
path: root/usr.bin/msgs/msgs.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-04-18 12:53:39 +0000
committerbde <bde@FreeBSD.org>2002-04-18 12:53:39 +0000
commitaed32c6aa217ae9b1c513e59b31bc4b0401cdf21 (patch)
treed8505fca1ea7b4e63af63da2b32967bb2e8d7ab8 /usr.bin/msgs/msgs.c
parentea1a822782225ef9ed41d50bca1727b8afc1d156 (diff)
downloadFreeBSD-src-aed32c6aa217ae9b1c513e59b31bc4b0401cdf21.zip
FreeBSD-src-aed32c6aa217ae9b1c513e59b31bc4b0401cdf21.tar.gz
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.
Diffstat (limited to 'usr.bin/msgs/msgs.c')
-rw-r--r--usr.bin/msgs/msgs.c82
1 files changed, 41 insertions, 41 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index 5dee2b8..64a547a 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;
}
}
OpenPOWER on IntegriCloud