[pkg-opensc-commit] [engine-pkcs11] 53/152: fix typos, change return type to int and args to 0 and 1.

Eric Dorland eric at moszumanska.debian.org
Mon Oct 19 03:11:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository engine-pkcs11.

commit 0a42df73c99cfcfabb57543118c9e48688bf7bea
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date:   Wed Aug 1 06:45:02 2007 +0000

    fix typos, change return type to int and args to 0 and 1.
---
 src/engine_pkcs11.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/engine_pkcs11.c b/src/engine_pkcs11.c
index 411ac75..6106220 100644
--- a/src/engine_pkcs11.c
+++ b/src/engine_pkcs11.c
@@ -73,7 +73,7 @@ int inc_verbose(void)
 /* either get the pin code from the supplied callback data, or get the pin
  * via asking our self. In both cases keep a copy of the pin code in the
  * pin variable (strdup'ed copy). */
-static char *get_pin(UI_METHOD * ui_method, void *callback_data);
+static int get_pin(UI_METHOD * ui_method, void *callback_data)
 {
 	UI *ui;
 	struct {
@@ -85,7 +85,7 @@ static char *get_pin(UI_METHOD * ui_method, void *callback_data);
 	if (mycb->password) {
 		pin = (char *)calloc(MAX_PIN_LENGTH, sizeof(char));
 		if (!pin)
-			return NULL;
+			return 0;
 		strncpy(pin,mycb->password,MAX_PIN_LENGTH);
 		return 1;
 	}
@@ -101,12 +101,12 @@ static char *get_pin(UI_METHOD * ui_method, void *callback_data);
 	    (ui, "PKCS#11 token PIN: ", 0, pin, 1, MAX_PIN_LENGTH)) {
 		fprintf(stderr, "UI_add_input_string failed\n");
 		UI_free(ui);
-		return NULL;
+		return 0;
 	}
 	if (UI_process(ui)) {
 		fprintf(stderr, "UI_process failed\n");
 		UI_free(ui);
-		return NULL;
+		return 0;
 	}
 	UI_free(ui);
 	return 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git



More information about the pkg-opensc-commit mailing list