[pkg-opensc-commit] [libp11] 160/239: Display the number of available slots

Eric Dorland eric at moszumanska.debian.org
Sat Oct 17 06:21:26 UTC 2015


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

eric pushed a commit to branch master
in repository libp11.

commit 19404ea12046a3386d15041b14bd356cbc34efcc
Author: Ludovic Rousseau <ludovic.rousseau+github at gmail.com>
Date:   Tue Nov 16 10:54:41 2010 +0000

    Display the number of available slots
---
 examples/getrandom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/getrandom.c b/examples/getrandom.c
index bc273aa..b8f0a69 100644
--- a/examples/getrandom.c
+++ b/examples/getrandom.c
@@ -42,6 +42,7 @@ int main(int argc, char *argv[])
 		rc = 2;
 		goto noslots;
 	}
+	printf("%d slots available\n", nslots);
 
 	/* get first slot with a token */
 	slot = PKCS11_find_token(ctx, slots, nslots);

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



More information about the pkg-opensc-commit mailing list