opensc-explorer: warnings when compiling with Windows VC

opensc-explorer.c(447) : warning C4101: 'count' : unreferenced local variable
opensc-explorer.c(940) : warning C4013: 'strlcpy' undefined; assuming extern returning int
opensc-explorer.c(1683) : warning C4013: '_isatty' undefined; assuming extern returning int
opensc-explorer.c(1726) : warning C4090: 'function' : different 'const' qualifiers
This commit is contained in:
Viktor Tarasov 2012-08-11 20:27:49 +02:00
parent 7f22ede919
commit 71ec763604
1 changed files with 48 additions and 42 deletions

View File

@ -32,10 +32,16 @@
#include <arpa/inet.h> /* for htons() */
#endif
#ifdef HAVE_IO_H
#include <io.h>
#endif
#include "libopensc/opensc.h"
#include "libopensc/asn1.h"
#include "libopensc/cardctl.h"
#include "libopensc/cards.h"
#include "common/compat_strlcpy.h"
#include "common/compat_getopt.h"
#include "util.h"
#define DIM(v) (sizeof(v)/sizeof((v)[0]))
@ -444,7 +450,7 @@ static int do_find(int argc, char **argv)
{
u8 fid[2], end[2];
sc_path_t path;
int r, count;
int r;
fid[0] = 0;
fid[1] = 0;