Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2012 21:19:33 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r236200 - stable/9/usr.bin/unzip
Message-ID:  <201205282119.q4SLJXRJ034060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Mon May 28 21:19:33 2012
New Revision: 236200
URL: http://svn.freebsd.org/changeset/base/236200

Log:
  MFH r230044, r233456: style and markup nits

Modified:
  stable/9/usr.bin/unzip/unzip.1
  stable/9/usr.bin/unzip/unzip.c
Directory Properties:
  stable/9/usr.bin/unzip/   (props changed)

Modified: stable/9/usr.bin/unzip/unzip.1
==============================================================================
--- stable/9/usr.bin/unzip/unzip.1	Mon May 28 21:15:54 2012	(r236199)
+++ stable/9/usr.bin/unzip/unzip.1	Mon May 28 21:19:33 2012	(r236200)
@@ -38,7 +38,6 @@
 .Ar zipfile
 .Sh DESCRIPTION
 .\" ...
-.Pp
 The following options are available:
 .Bl -tag -width Fl
 .It Fl a

Modified: stable/9/usr.bin/unzip/unzip.c
==============================================================================
--- stable/9/usr.bin/unzip/unzip.c	Mon May 28 21:15:54 2012	(r236199)
+++ stable/9/usr.bin/unzip/unzip.c	Mon May 28 21:19:33 2012	(r236200)
@@ -426,7 +426,7 @@ handle_existing_file(char **path)
 		fprintf(stderr,
 		    "replace %s? [y]es, [n]o, [A]ll, [N]one, [r]ename: ",
 		    *path);
-		if (fgets(buf, sizeof(buf), stdin) == 0) {
+		if (fgets(buf, sizeof(buf), stdin) == NULL) {
 			clearerr(stdin);
 			printf("NULL\n(EOF or read error, "
 			    "treating as \"[N]one\"...)\n");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205282119.q4SLJXRJ034060>