From 416e4ac449e25d695c429f07659066a2a45815a6 Mon Sep 17 00:00:00 2001 From: thib Date: Wed, 12 Sep 2001 13:50:38 +0000 Subject: [PATCH] ported to AIX --- allow.c | 7 ++++--- convert-fcrontab.c | 11 +++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/allow.c b/allow.c index 130585f..fd9c2dd 100644 --- a/allow.c +++ b/allow.c @@ -22,9 +22,10 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: allow.c,v 1.10 2001-07-09 11:50:30 thib Exp $ */ + /* $Id: allow.c,v 1.11 2001-09-12 13:50:50 thib Exp $ */ #include "fcrontab.h" + #include "allow.h" int @@ -72,8 +73,8 @@ is_allowed(char *user) /* return 1 if user is allowed to use this soft * otherwise return 0 */ { - char allow = 0; - char deny = 0; + int allow = 0; + int deny = 0; /* check if user is in passwd file */ if ( ! getpwnam(user) ) diff --git a/convert-fcrontab.c b/convert-fcrontab.c index 30779d1..3b3ec1e 100644 --- a/convert-fcrontab.c +++ b/convert-fcrontab.c @@ -22,12 +22,15 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: convert-fcrontab.c,v 1.7 2001-07-09 21:08:15 thib Exp $ */ + /* $Id: convert-fcrontab.c,v 1.8 2001-09-12 13:50:38 thib Exp $ */ +#include "global.h" -#include "convert-fcrontab.h" +/* log.c */ +#include "log.h" +#include "subs.h" -char rcs_info[] = "$Id: convert-fcrontab.c,v 1.7 2001-07-09 21:08:15 thib Exp $"; +char rcs_info[] = "$Id: convert-fcrontab.c,v 1.8 2001-09-12 13:50:38 thib Exp $"; void info(void); void usage(void); @@ -327,7 +330,7 @@ convert_file(char *file_name) int main(int argc, char *argv[]) { - char c; + int c; extern char *optarg; extern int optind, opterr, optopt; char *user_to_update = NULL; -- 2.40.0