Date: Wed, 13 Apr 2016 01:57:06 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297905 - head/usr.bin/fmt Message-ID: <201604130157.u3D1v69v038413@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604130157.u3D1v69v038413>