changeset 21382:ea07f7be4ef8

11062 psrinfo: comparison between pointer and integer Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Gordon Ross <gwr@nexenta.com>
author Toomas Soome <tsoome@me.com>
date Wed, 22 May 2019 20:34:50 +0300
parents 4d574f60ad59
children 96f983818898 61706a713008
files usr/src/cmd/psrinfo/psrinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/psrinfo/psrinfo.c	Sat May 18 09:15:16 2019 +0300
+++ b/usr/src/cmd/psrinfo/psrinfo.c	Wed May 22 20:34:50 2019 +0300
@@ -752,7 +752,7 @@
 		return (EXIT_SUCCESS);
 	}
 
-	if (opt_t != NULL) {
+	if (opt_t != 0) {
 		if (optind != argc)
 			usage(_("cannot specify CPUs with -t"));
 		if (opt_s || opt_v)