]> granicus.if.org Git - fcron/commitdiff
ported to AIX
authorthib <thib>
Wed, 12 Sep 2001 13:50:38 +0000 (13:50 +0000)
committerthib <thib>
Wed, 12 Sep 2001 13:50:38 +0000 (13:50 +0000)
allow.c
convert-fcrontab.c

diff --git a/allow.c b/allow.c
index 130585f867dd5d166a57aa4e20e2c1a7d0a9d4ef..fd9c2dde62097709f58468a507fa3bfad8d965c3 100644 (file)
--- a/allow.c
+++ b/allow.c
  *  `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) )
index 30779d161d0f08f2f8b19711e3344d208719bbff..3b3ec1e5f3d739bc12df168368ec80055904bf95 100644 (file)
  *  `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;