[Pcsclite-git-commit] [pcsc-tools] 10/32: pcsc_scan: use return in test_rv macro

Ludovic Rousseau rousseau at moszumanska.debian.org
Thu May 4 15:44:47 UTC 2017


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

rousseau pushed a commit to branch master
in repository pcsc-tools.

commit d6047fe5c9db49e789cc84fe780be2383e753104
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sat Apr 8 14:39:38 2017 +0200

    pcsc_scan: use return in test_rv macro
    
    test_rv() will return from the function instead of exiting the program.
---
 pcsc_scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcsc_scan.c b/pcsc_scan.c
index 6364698..eb9525a 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -54,7 +54,7 @@ do { \
 	{ \
 		printf("%s%s: %s%s\n", red, fct, pcsc_stringify_error(rv), color_end); \
 		(void)SCardReleaseContext(hContext); \
-		exit(-1); \
+		return -1; \
 	} \
 } while(0)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git



More information about the Pcsclite-cvs-commit mailing list