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:
parent
7f22ede919
commit
71ec763604
|
@ -32,10 +32,16 @@
|
||||||
#include <arpa/inet.h> /* for htons() */
|
#include <arpa/inet.h> /* for htons() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_IO_H
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "libopensc/opensc.h"
|
#include "libopensc/opensc.h"
|
||||||
#include "libopensc/asn1.h"
|
#include "libopensc/asn1.h"
|
||||||
#include "libopensc/cardctl.h"
|
#include "libopensc/cardctl.h"
|
||||||
#include "libopensc/cards.h"
|
#include "libopensc/cards.h"
|
||||||
|
#include "common/compat_strlcpy.h"
|
||||||
|
#include "common/compat_getopt.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#define DIM(v) (sizeof(v)/sizeof((v)[0]))
|
#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];
|
u8 fid[2], end[2];
|
||||||
sc_path_t path;
|
sc_path_t path;
|
||||||
int r, count;
|
int r;
|
||||||
|
|
||||||
fid[0] = 0;
|
fid[0] = 0;
|
||||||
fid[1] = 0;
|
fid[1] = 0;
|
||||||
|
|
Loading…
Reference in New Issue