svn commit: r236200 - stable/9/usr.bin/unzip

Dag-Erling Smorgrav des at FreeBSD.org
Mon May 28 21:19:34 UTC 2012


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");


More information about the svn-src-stable-9 mailing list