From f60bb7e613545968f0f9075e5bb18acd18b1e793 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 18 May 2012 16:27:23 +0000 Subject: [PATCH] Fix compiler warning mifare-desfire-access.c:102: warning: initialization discards qualifiers from pointer target type --- examples/mifare-desfire-access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mifare-desfire-access.c b/examples/mifare-desfire-access.c index 9cfbbe7..36176fd 100644 --- a/examples/mifare-desfire-access.c +++ b/examples/mifare-desfire-access.c @@ -99,7 +99,7 @@ main(int argc, char *argv[]) if (res < 0) 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); if (res < 0) errx (EXIT_FAILURE, "File write failed");