From b8bcd4ec03002c7f35a0e45c74f10c34fa673e85 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Mon, 27 Aug 2007 19:45:16 +0200 Subject: [PATCH] Kill a few warnings. Signed-off-by: Tomas Janousek --- src/crontab.c | 2 +- src/funcs.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crontab.c b/src/crontab.c index 5b8aaf7..b000a53 100644 --- a/src/crontab.c +++ b/src/crontab.c @@ -423,7 +423,7 @@ edit_cmd(void) { if ( selinux_context ) { context_t ccon = NULL; - char *level = NULL; + const char *level = NULL; if (!(ccon = context_new(selinux_context))) { diff --git a/src/funcs.h b/src/funcs.h index c50d9b1..fe54990 100644 --- a/src/funcs.h +++ b/src/funcs.h @@ -103,3 +103,7 @@ int get_security_context(const char *name, void free_security_context( security_context_t *scontext ); int crontab_security_access(void); + +/* PAM */ +int cron_start_pam(struct passwd *pw); +void cron_close_pam(void); -- 2.40.0