Use a "const char *" to store a const C-string ptr. Fix

pkcs15-oberthur-awp.c:97: warning: assignment discards qualifiers from pointer target type
pkcs15-oberthur-awp.c:98: warning: assignment discards qualifiers from pointer target type
pkcs15-oberthur-awp.c:99: warning: assignment discards qualifiers from pointer target type
[etc...]


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4161 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2010-03-28 11:53:44 +00:00
parent 35036bceca
commit 2e4610e3be
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ awp_new_file(struct sc_pkcs15_card *p15card, struct sc_profile *profile,
{
struct sc_context *ctx = p15card->card->ctx;
struct sc_file *ifile=NULL, *ofile=NULL;
char name[NAME_MAX_LEN], *itag=NULL, *desc=NULL, *otag=NULL;
char name[NAME_MAX_LEN];
const char *itag=NULL, *desc=NULL, *otag=NULL;
SC_FUNC_CALLED(ctx, SC_LOG_DEBUG_NORMAL);
sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "type 0x%X; num %i; info %p; obj %p\n", type, num, info_out, obj_out);