version 1.23, 2015/08/20 22:32:41 |
version 1.24, 2015/11/06 23:47:42 |
|
|
|
|
if ((sc_token = malloc(sc_len)) == NULL) { |
if ((sc_token = malloc(sc_len)) == NULL) { |
fprintf(stderr, "%s: Insufficient virtual memory\n", |
fprintf(stderr, "%s: Insufficient virtual memory\n", |
ProgramName); |
__progname); |
return (-1); |
return (-1); |
} |
} |
return (0); |
return (0); |
|
|
static void |
static void |
plonk(int tok) |
plonk(int tok) |
{ |
{ |
fprintf(stderr, "%s: %s time\n", ProgramName, |
fprintf(stderr, "%s: %s time\n", __progname, |
(tok == EOF) ? "incomplete" : "garbled"); |
(tok == EOF) ? "incomplete" : "garbled"); |
} |
} |
|
|
|
|
case MINUTES: |
case MINUTES: |
if (expectplur != sc_tokplur) |
if (expectplur != sc_tokplur) |
fprintf(stderr, "%s: pluralization is wrong\n", |
fprintf(stderr, "%s: pluralization is wrong\n", |
ProgramName); |
__progname); |
dateadd(increment, tm); |
dateadd(increment, tm); |
return (0); |
return (0); |
} |
} |
|
|
} |
} |
return (0); |
return (0); |
bad: |
bad: |
fprintf(stderr, "%s: garbled time\n", ProgramName); |
fprintf(stderr, "%s: garbled time\n", __progname); |
return (-1); |
return (-1); |
} |
} |
|
|
|
|
} |
} |
return (0); |
return (0); |
bad: |
bad: |
fprintf(stderr, "%s: garbled time\n", ProgramName); |
fprintf(stderr, "%s: garbled time\n", __progname); |
return (-1); |
return (-1); |
} |
} |
|
|
|
|
} |
} |
|
|
if (runtimer < 0) { |
if (runtimer < 0) { |
fprintf(stderr, "%s: garbled time\n", ProgramName); |
fprintf(stderr, "%s: garbled time\n", __progname); |
return (-1); |
return (-1); |
} |
} |
|
|
if (nowtimer > runtimer) { |
if (nowtimer > runtimer) { |
fprintf(stderr, "%s: cannot schedule jobs in the past\n", |
fprintf(stderr, "%s: cannot schedule jobs in the past\n", |
ProgramName); |
__progname); |
return (-1); |
return (-1); |
} |
} |
|
|