* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: convert-fcrontab.c,v 1.6 2001-07-07 17:33:19 thib Exp $ */
+ /* $Id: convert-fcrontab.c,v 1.7 2001-07-09 21:08:15 thib Exp $ */
#include "convert-fcrontab.h"
-char rcs_info[] = "$Id: convert-fcrontab.c,v 1.6 2001-07-07 17:33:19 thib Exp $";
+char rcs_info[] = "$Id: convert-fcrontab.c,v 1.7 2001-07-09 21:08:15 thib Exp $";
void info(void);
void usage(void);
if ((file->cf_user = read_str(f, buf, sizeof(buf))) == NULL)
die_e("Cannot read user's name");
- if ( fscanf(f, "%ld", &t_save) != 1 )
+ if ( fscanf(f, "%ld", (long int *) &t_save) != 1 )
error("could not get time and date of saving");
/* read env variables */
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fileconf.c,v 1.49 2001-07-04 16:15:54 thib Exp $ */
+ /* $Id: fileconf.c,v 1.50 2001-07-09 21:07:28 thib Exp $ */
#include "fcrontab.h"
#include "fileconf.h"
if( ! in_brackets || (ptr=get_time(ptr, &(cl->cl_nextexe)))==NULL)
Handle_err;
if (debug_opt)
- fprintf(stderr, " Opt : \"%s\" %ld\n",opt_name,cl->cl_nextexe);
+ fprintf(stderr, " Opt : \"%s\" %ld\n", opt_name,
+ (long int)cl->cl_nextexe);
}
else if(strcmp(opt_name, "r")==0 || strcmp(opt_name, "runfreq")==0) {
if( ! in_brackets || (ptr=get_time(ptr, &(cl->cl_until)))==NULL)
Handle_err;
if (debug_opt)
- fprintf(stderr, " Opt : \"%s\" %ld\n",opt_name,cl->cl_until);
+ fprintf(stderr, " Opt : \"%s\" %ld\n", opt_name,
+ (long int)cl->cl_until);
}
else if(strcmp(opt_name, "m")==0 || strcmp(opt_name, "mail")==0){
set_freq(cl->cl_option);
/* then cl_timefreq */
- if ( (ptr = get_time(ptr, &(cl->cl_timefreq))) == NULL) {
+ if ( (ptr = get_time(ptr, (time_t *) &(cl->cl_timefreq))) == NULL) {
fprintf(stderr, "%s:%d: Error while reading frequency:"
" skipping line.\n", file_name, line);
goto exiterr;
if ( debug_opt )
fprintf(stderr, " Cmd \"%s\", timefreq %ld, first %ld\n",
- cl->cl_shell, cl->cl_timefreq, cl->cl_nextexe);
+ cl->cl_shell, cl->cl_timefreq, (long int)cl->cl_nextexe);
return;