From: thib Date: Sat, 5 May 2001 19:08:51 +0000 (+0000) Subject: changed name : update_file() is now convert_file() X-Git-Tag: ver1564~284 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d43a1aa35bb48bdd3879b94f522bb3dc6b01f54;p=fcron changed name : update_file() is now convert_file() added a small explain message --- diff --git a/convert-fcrontab.c b/convert-fcrontab.c index 93d71b1..5d6e66f 100644 --- a/convert-fcrontab.c +++ b/convert-fcrontab.c @@ -22,16 +22,16 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: convert-fcrontab.c,v 1.2 2001-04-30 03:02:28 thib Exp $ */ + /* $Id: convert-fcrontab.c,v 1.3 2001-05-05 19:08:51 thib Exp $ */ #include "convert-fcrontab.h" -char rcs_info[] = "$Id: convert-fcrontab.c,v 1.2 2001-04-30 03:02:28 thib Exp $"; +char rcs_info[] = "$Id: convert-fcrontab.c,v 1.3 2001-05-05 19:08:51 thib Exp $"; void info(void); void usage(void); -void update_file(char *file_name); +void convert_file(char *file_name); char *read_str(FILE *f, char *buf, int max); void delete_file(CF *file); @@ -172,7 +172,7 @@ delete_file(CF *file) } void -update_file(char *file_name) +convert_file(char *file_name) /* this functions is a mix of read_file() from version 1.0.3 and save_file(), * so you can read more comments there */ { @@ -184,6 +184,8 @@ update_file(char *file_name) char buf[LINE_LEN]; time_t t_save = 0; + explain("Converting %s's fcrontab ...", file_name); + Alloc(file, CF); /* open file */ if ( (f = fopen(file_name, "r")) == NULL ) @@ -364,7 +366,7 @@ main(int argc, char *argv[]) if (chdir(cdir) != 0) die_e("Could not change dir to " FCRONTABS); - update_file(user_to_update); + convert_file(user_to_update); exit(EXIT_OK);