summaryrefslogtreecommitdiff
path: root/tests/tst-pam_set_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst-pam_set_item.c')
-rw-r--r--tests/tst-pam_set_item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tst-pam_set_item.c b/tests/tst-pam_set_item.c
index ecc68e6c..29944bdc 100644
--- a/tests/tst-pam_set_item.c
+++ b/tests/tst-pam_set_item.c
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <unistd.h>
+#include <string.h>
#include <security/pam_appl.h>
@@ -132,7 +133,7 @@ main (void)
fprintf (stderr,
"pam_get_item got wrong value:\n"
"expected: %s\n"
- "got: %s\n", items[i].new_value, value);
+ "got: %s\n", items[i].new_value, (const char *)value);
return 1;
}
}