Fix compiler warning

mifare-desfire-access.c:102: warning: initialization discards qualifiers
from pointer target type
This commit is contained in:
Ludovic Rousseau 2012-05-18 16:27:23 +00:00
parent 4a15097d15
commit f60bb7e613

View file

@ -99,7 +99,7 @@ main(int argc, char *argv[])
if (res < 0) if (res < 0)
errx (EXIT_FAILURE, "File creation failed"); errx (EXIT_FAILURE, "File creation failed");
char *s= "Hello World"; const char *s= "Hello World";
res = mifare_desfire_write_data (tags[i], 1, 0, strlen (s), s); res = mifare_desfire_write_data (tags[i], 1, 0, strlen (s), s);
if (res < 0) if (res < 0)
errx (EXIT_FAILURE, "File write failed"); errx (EXIT_FAILURE, "File write failed");