Skip to content

Commit

Permalink
pcsc_scan; Windows can also use option -n
Browse files Browse the repository at this point in the history
By default no ATR parser is defined on Windows.
So we do not need to have a special treatment. ATR parsing will be disabled by default.
  • Loading branch information
LudovicRousseau committed Jan 13, 2024
1 parent 78960fb commit 111432b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pcsc_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ static void usage(const char *pname)
printf("%s usage:\n\n\t%s [ -h | -V | -n | -r | -c | -s | -t secs | -d | -p]\n\n", pname, pname);
printf("\t\t -h : this help\n");
printf("\t\t -V : print version number\n");
#ifndef WIN32
printf("\t\t -n : no ATR analysis\n");
#endif
printf("\t\t -r : only lists readers\n");
printf("\t\t -c : only lists cards\n");
printf("\t\t -s : stress mode\n");
Expand Down Expand Up @@ -299,12 +297,7 @@ static void initialize_options(options_t *options, const char *pname)
options->maxtime = 0;
}

#define OPTIONS_BASE "Vhvrcst:qdp"
#ifdef WIN32
#define OPTIONS OPTIONS_BASE
#else
#define OPTIONS OPTIONS_BASE "n"
#endif
#define OPTIONS "Vhvrcst:qdpn"

static void print_version(void)
{
Expand Down

0 comments on commit 111432b

Please sign in to comment.