SHA256
1
0
forked from pool/whois
Files
whois/whois-5.0.11-mkpasswd-fix-compiler-warnings.diff
Cristian Rodríguez 9f4f7e06b6 Accepting request 76616 from home:lnussel:crypt_blowfish
- enable use of crypt_gensalt to support all glibc supported
  algorithms
- allow 8bit passwords read from file
- support new blowfish $2y algorithm

I've sent the patches to Marco d'Itri <md@linux.it>, he said he will
include them in the next whois release.

OBS-URL: https://build.opensuse.org/request/show/76616
OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=19
2011-07-27 06:21:55 +00:00

35 lines
892 B
Diff

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