use a (const char *) for the reader_id and fix 2 warnings
opensc-explorer.c:1606: warning: passing argument 3 of ‘util_connect_card’ discards qualifiers from pointer target type rutoken-tool.c:492: warning: passing argument 3 of ‘util_connect_card’ discards qualifiers from pointer target type git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4179 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
d24de6ab58
commit
cf8a7f894f
|
@ -8,7 +8,7 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
int util_connect_card(sc_context_t *ctx, sc_card_t **cardp,
|
int util_connect_card(sc_context_t *ctx, sc_card_t **cardp,
|
||||||
char *reader_id, int wait, int verbose)
|
const char *reader_id, int wait, int verbose)
|
||||||
{
|
{
|
||||||
sc_reader_t *reader, *found;
|
sc_reader_t *reader, *found;
|
||||||
sc_card_t *card;
|
sc_card_t *card;
|
||||||
|
|
|
@ -33,7 +33,7 @@ void util_warn(const char *fmt, ...);
|
||||||
void util_error(const char *fmt, ...);
|
void util_error(const char *fmt, ...);
|
||||||
void util_fatal(const char *fmt, ...);
|
void util_fatal(const char *fmt, ...);
|
||||||
/* All singing all dancing card connect routine */
|
/* All singing all dancing card connect routine */
|
||||||
int util_connect_card(struct sc_context *, struct sc_card **, char *reader_id, int wait, int verbose);
|
int util_connect_card(struct sc_context *, struct sc_card **, const char *reader_id, int wait, int verbose);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue