[pkg-opensc-commit] [pam-p11] 37/66: remove unused static function is_spaced_str()
Eric Dorland
eric at moszumanska.debian.org
Tue Jun 13 04:06:51 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 ce24d41b96ea331b6ae11fdd3462738b282a6f10
Author: Ludovic Rousseau <ludovic.rousseau+github at gmail.com>
Date: Mon May 5 09:35:28 2008 +0000
remove unused static function is_spaced_str()
---
src/pam_p11.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/src/pam_p11.c b/src/pam_p11.c
index ed33cdb..a43aa58 100644
--- a/src/pam_p11.c
+++ b/src/pam_p11.c
@@ -49,22 +49,6 @@
extern int match_user(X509 * x509, const char *login);
-/*
-* comodity function that returns 1 on null, empty o spaced string
-*/
-static int is_spaced_str(const char *str)
-{
- char *pt = (char *)str;
- if (!str)
- return 1;
- if (!strcmp(str, ""))
- return 1;
- for (; *pt; pt++)
- if (!isspace(*pt))
- return 0;
- return 1;
-}
-
PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
const char **argv)
{
--
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