summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-25 22:37:58 +0000
committerimp <imp@FreeBSD.org>1999-04-25 22:37:58 +0000
commit22f901a57c1958698d9cecf2b40a9fc0fd04f786 (patch)
tree4db883c020b4df70cb765924c2f0a2d0680f4620 /usr.bin/sed
parentd12a7ef464b342d4fca0ef83535cf75b401d3f38 (diff)
downloadFreeBSD-src-22f901a57c1958698d9cecf2b40a9fc0fd04f786.zip
FreeBSD-src-22f901a57c1958698d9cecf2b40a9fc0fd04f786.tar.gz
More egcs warning fixes:
o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 535405a..cf0edbe 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -40,7 +40,7 @@
static char sccsid[] = "@(#)process.c 8.6 (Berkeley) 4/20/94";
#endif
static const char rcsid[] =
- "$Id: process.c,v 1.7 1998/04/29 21:58:36 ache Exp $";
+ "$Id: process.c,v 1.8 1998/12/07 05:33:39 archie Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -464,7 +464,7 @@ lputs(s)
struct winsize win;
static int termwidth = -1;
- if (termwidth == -1)
+ if (termwidth == -1) {
if ((p = getenv("COLUMNS")))
termwidth = atoi(p);
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
@@ -472,6 +472,7 @@ lputs(s)
termwidth = win.ws_col;
else
termwidth = 60;
+ }
for (count = 0; *s; ++s) {
if (count >= termwidth) {
OpenPOWER on IntegriCloud