svn commit: r297905 - head/usr.bin/fmt
Pedro F. Giffuni
pfg at FreeBSD.org
Wed Apr 13 01:57:07 UTC 2016
Author: pfg
Date: Wed Apr 13 01:57:06 2016
New Revision: 297905
URL: https://svnweb.freebsd.org/changeset/base/297905
Log:
fmt(1): for pointers use NULL instead of 0
While here clean excessive not lint comment indentation.
Modified:
head/usr.bin/fmt/fmt.c
Modified: head/usr.bin/fmt/fmt.c
==============================================================================
--- head/usr.bin/fmt/fmt.c Wed Apr 13 01:54:36 2016 (r297904)
+++ head/usr.bin/fmt/fmt.c Wed Apr 13 01:57:06 2016 (r297905)
@@ -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; /* tre
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 *
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)) {
More information about the svn-src-all
mailing list