From: Tomas Janousek Date: Mon, 27 Aug 2007 17:45:16 +0000 (+0200) Subject: Kill a few warnings. X-Git-Tag: v4.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8bcd4ec03002c7f35a0e45c74f10c34fa673e85;p=cronie Kill a few warnings. Signed-off-by: Tomas Janousek --- 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);