File whois-5.0.11-mkpasswd-fix-compiler-warnings.diff of Package whois

From a57b7374a00a93bc237f34c28f9226258adb6a82 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Thu, 14 Jul 2011 13:42:01 +0200
Subject: [PATCH whois 7/7] fix compiler warnings

---
 mkpasswd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mkpasswd.c b/mkpasswd.c
index 7408cbc..cb5f5ad 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
 	    {
 		char *p;
 		rounds = strtol(optarg, &p, 10);
-		if (p == NULL || *p != '\0' || rounds < 0) {
+		if (p == NULL || *p != '\0') {
 		    fprintf(stderr, _("Invalid number '%s'.\n"), optarg);
 		    exit(1);
 		}
@@ -296,7 +296,7 @@ int main(int argc, char *argv[])
     if (password) {
     } else if (password_fd != -1) {
 	FILE *fp;
-	unsigned char *p;
+	char *p;
 
 	if (isatty(password_fd))
 	    fprintf(stderr, _("Password: "));
-- 
1.7.3.4