From owner-svn-src-head@freebsd.org Wed Apr 13 01:57:07 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DDF5B0E3B4; Wed, 13 Apr 2016 01:57:07 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 501721309; Wed, 13 Apr 2016 01:57:07 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3D1v6FL038414; Wed, 13 Apr 2016 01:57:06 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3D1v69v038413; Wed, 13 Apr 2016 01:57:06 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201604130157.u3D1v69v038413@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Wed, 13 Apr 2016 01:57:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297905 - head/usr.bin/fmt X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 01:57:07 -0000 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 __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)) {