aboutsummaryrefslogtreecommitdiff
path: root/tests/tst-pam_set_item.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2006-03-12 10:26:29 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2006-03-12 10:26:29 +0000
commitd1623a3eec7265ad6be1b13292d19718d7816478 (patch)
tree1acbe1be4282038d84ae9611d34fb255d5d3e2b8 /tests/tst-pam_set_item.c
parent993d5e30fa9085a05cc8231c49750e8bcc03170e (diff)
downloadpam-d1623a3eec7265ad6be1b13292d19718d7816478.tar.gz
pam-d1623a3eec7265ad6be1b13292d19718d7816478.tar.bz2
pam-d1623a3eec7265ad6be1b13292d19718d7816478.zip
Relevant BUGIDs:
Purpose of commit: bugfix/new feature Commit summary: --------------- 2006-03-12 Thorsten Kukuk <kukuk@thkukuk.de> * libpam/pam_item.c (pam_get_user): Check for valid pamh before using it. * tests/tst-pam_get_user.c: New.
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;
}
}