[pkg-opensc-commit] [pam-p11] 45/66: Fixup a few warnings
Eric Dorland
eric at moszumanska.debian.org
Tue Jun 13 04:06:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository pam-p11.
commit c5d9fdeec8cac1e2e034593d54ceac33b16f78dd
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date: Fri Aug 29 14:47:59 2008 +0000
Fixup a few warnings
---
src/match_openssh.c | 2 +-
src/pam_p11.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/match_openssh.c b/src/match_openssh.c
index b83ed28..b6a991f 100644
--- a/src/match_openssh.c
+++ b/src/match_openssh.c
@@ -151,7 +151,7 @@ static EVP_PKEY *ssh2_line_to_key(char *line)
i += 4;
/* now: key_from_blob */
- if (strncmp(&decoded[i], "ssh-rsa", 7) != 0)
+ if (strncmp((char *)&decoded[i], "ssh-rsa", 7) != 0)
return NULL;
i += len;
diff --git a/src/pam_p11.c b/src/pam_p11.c
index a43aa58..ae00c15 100644
--- a/src/pam_p11.c
+++ b/src/pam_p11.c
@@ -52,7 +52,7 @@ extern int match_user(X509 * x509, const char *login);
PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
const char **argv)
{
- int i, rv;
+ int rv;
const char *user;
char *password;
char password_prompt[64];
@@ -75,6 +75,7 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
unsigned char signature[MAX_SIGSIZE];
int fd;
unsigned siglen;
+ unsigned int i;
/* check parameters */
if (argc != 1) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pam-p11.git
More information about the pkg-opensc-commit
mailing list