[Pcsclite-git-commit] [pcsc-tools] 19/32: pcsc_scan: move colors outside of main()

Ludovic Rousseau rousseau at moszumanska.debian.org
Thu May 4 15:44:48 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 a0bde8f573acccf6f9a4c0dfebd9526153a9fd4d
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sat Apr 8 17:33:10 2017 +0200

    pcsc_scan: move colors outside of main()
    
    colors are now define as global variables so they can be used
    outside of main().
---
 pcsc_scan.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/pcsc_scan.c b/pcsc_scan.c
index 8250ada..4f37606 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -69,6 +69,11 @@ static void usage(void)
 	printf("  -h : this help\n");
 } /* usage */
 
+const char *blue = "";
+const char *red = "";
+const char *magenta = "";
+const char *color_end = "";
+
 unsigned int spin_state = 0;
 static void spin_start(void)
 {
@@ -107,10 +112,6 @@ int main(int argc, char *argv[])
 	char atr_command[sizeof(atr)+sizeof(ATR_PARSER)+2+1];
 	int opt;
 	int analyse_atr = TRUE;
-	const char *blue = "";
-	const char *red = "";
-	const char *magenta = "";
-	const char *color_end = "";
 	int pnp = TRUE;
 
 	printf("PC/SC device scanner\n");

-- 
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