From a14d555c873398b14776ca4f2c33f9c69617afb9 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Tue, 30 May 1995 06:41:30 +0000 Subject: Remove trailing whitespace. --- usr.bin/xstr/xstr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/xstr/xstr.c') diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c index 5f3d0ea..5b68c53 100644 --- a/usr.bin/xstr/xstr.c +++ b/usr.bin/xstr/xstr.c @@ -152,7 +152,7 @@ process(name) continue; } for (cp = linebuf; c = *cp++;) switch (c) { - + case '"': if (incomm) goto def; @@ -185,7 +185,7 @@ process(name) continue; } goto def; - + def: default: putchar(c); @@ -219,7 +219,7 @@ yankstr(cpp) if (c == 0) break; if (c == '\n') { - if (fgets(linebuf, sizeof linebuf, stdin) + if (fgets(linebuf, sizeof linebuf, stdin) == NULL) { if (ferror(stdin)) { perror("x.c"); -- cgit v1.1