From f2ae8274c38a4b004b67b14afaa5caf2f10676e5 Mon Sep 17 00:00:00 2001 From: thib Date: Tue, 15 May 2001 00:44:51 +0000 Subject: [PATCH] *** empty log message *** --- configure.in | 2 +- fcron.c | 7 +++---- fcron.h | 8 ++++---- fcrontab.h | 14 +++++--------- global.h | 10 ++++++---- 5 files changed, 19 insertions(+), 22 deletions(-) diff --git a/configure.in b/configure.in index 7dda50c..2c359a5 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ AC_PREFIX_DEFAULT($prefix) AC_CONFIG_HEADER(config.h) AC_PREREQ(2.7) -vers="1.1.0" +vers="1.1.1" vers_quoted="\"$vers\"" AC_DEFINE_UNQUOTED(VERSION, $vers) AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted) diff --git a/fcron.c b/fcron.c index 65dacca..030af86 100644 --- a/fcron.c +++ b/fcron.c @@ -21,11 +21,11 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcron.c,v 1.43 2001-04-29 22:15:28 thib Exp $ */ + /* $Id: fcron.c,v 1.44 2001-05-15 00:45:09 thib Exp $ */ #include "fcron.h" -char rcs_info[] = "$Id: fcron.c,v 1.43 2001-04-29 22:15:28 thib Exp $"; +char rcs_info[] = "$Id: fcron.c,v 1.44 2001-05-15 00:45:09 thib Exp $"; void main_loop(void); void check_signal(void); @@ -52,7 +52,6 @@ char foreground = 1; /* set to 1 when we are on foreground, else 0 */ char foreground = 0; /* set to 1 when we are on foreground, else 0 */ #endif -char *cdir = FCRONTABS; /* the dir where are stored users' fcrontabs */ time_t save_time = SAVE; /* process identity */ @@ -371,7 +370,7 @@ main(int argc, char **argv) /* change directory */ - if (chdir(cdir) != 0) + if (chdir(FCRONTABS) != 0) die_e("Could not change dir to " FCRONTABS); diff --git a/fcron.h b/fcron.h index 2f33bfb..af207b6 100644 --- a/fcron.h +++ b/fcron.h @@ -21,10 +21,10 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcron.h,v 1.20 2001-04-29 22:15:38 thib Exp $ */ + /* $Id: fcron.h,v 1.21 2001-05-15 00:45:16 thib Exp $ */ -#ifndef __FCRONH__ -#define __FCRONH__ +#ifndef __FCRON_H__ +#define __FCRON_H__ #include "global.h" @@ -91,5 +91,5 @@ extern void xexit(int exit_value); #include "conf.h" #include "job.h" -#endif /* __FCRONH */ +#endif /* __FCRON_H */ diff --git a/fcrontab.h b/fcrontab.h index e8a61c8..ba81f30 100644 --- a/fcrontab.h +++ b/fcrontab.h @@ -21,10 +21,10 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrontab.h,v 1.7 2001-04-29 22:14:29 thib Exp $ */ + /* $Id: fcrontab.h,v 1.8 2001-05-15 00:44:51 thib Exp $ */ -#ifndef __FCRONTABH__ -#define __FCRONTABH__ +#ifndef __FCRONTAB_H__ +#define __FCRONTAB_H__ #include "global.h" @@ -40,13 +40,9 @@ extern CF *file_base; /* prototype definition */ -/* fileconf.c */ -extern int read_file(char *filename, char *user); -extern void delete_file(const char *user_name); -extern int save_file(char *path); - #include "log.h" #include "subs.h" #include "allow.h" +#include "fileconf.h" -#endif /* __FCRONTABH__ */ +#endif /* __FCRONTAB_H__ */ diff --git a/global.h b/global.h index 03206c7..917070e 100644 --- a/global.h +++ b/global.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: global.h,v 1.24 2001-04-21 08:47:26 thib Exp $ */ + /* $Id: global.h,v 1.25 2001-05-15 00:45:55 thib Exp $ */ /* @@ -29,8 +29,8 @@ Compilation's options are in config.h */ -#ifndef __GLOBALH__ -#define __GLOBALH__ +#ifndef __GLOBAL_H__ +#define __GLOBAL_H__ /* config.h must be included before every other includes * (contains the compilation options) */ @@ -104,6 +104,8 @@ #define ERR -1 #define OK 0 +/* options for local functions */ +#define STD 0 /* macros */ #define Alloc(ptr, type) \ @@ -170,5 +172,5 @@ typedef struct exe { pid_t e_pid; } exe; -#endif /* __GLOBALH__ */ +#endif /* __GLOBAL_H__ */ -- 2.40.0