diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-13 01:57:06 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-13 01:57:06 +0000 |
commit | 5c3b3f706fae5bed563c4681b89e06b1a2860417 (patch) | |
tree | 49259deecff6971e40e62275fa6c2a36563a7a73 /usr.bin | |
parent | 0e0d28c3d5f6588be357f5eb4e924fd5be0fd13d (diff) | |
download | FreeBSD-src-5c3b3f706fae5bed563c4681b89e06b1a2860417.zip FreeBSD-src-5c3b3f706fae5bed563c4681b89e06b1a2860417.tar.gz |
fmt(1): for pointers use NULL instead of 0
While here clean excessive not lint comment indentation.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fmt/fmt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index cbf54a9..be196c2 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -171,8 +171,7 @@ #ifndef lint static const char copyright[] = "Copyright (c) 1997 Gareth McCaughan. All rights reserved.\n"; - -#endif /* not lint */ +#endif /* not lint */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -248,7 +247,7 @@ static int grok_mail_headers = 0; /* treat embedded mail headers magically? */ static int format_troff = 0; /* Format troff? */ static int n_errors = 0; /* Number of failed files. Return on exit. */ -static wchar_t *output_buffer = 0; /* Output line will be built here */ +static wchar_t *output_buffer = NULL; /* Output line will be built here */ static size_t x; /* Horizontal position in output line */ static size_t x0; /* Ditto, ignoring leading whitespace */ static size_t output_buffer_length = 0; @@ -693,7 +692,7 @@ center_stream(FILE *stream, const char *name) size_t width; int cwidth; - while ((line = get_line(stream, &length)) != 0) { + while ((line = get_line(stream, &length)) != NULL) { size_t l = length; while (l > 0 && iswspace(*line)) { |