mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-09-28 15:19:18 +00:00
catch use of both -a xxx and value
SCCS-file: date.c SCCS-SID: 2.19
This commit is contained in:
committed by
Paul Eggert
parent
17f19c34dc
commit
f906fd8e2c
@@ -382,10 +382,13 @@ char * argv[];
|
||||
** Entire command line has now been checked.
|
||||
*/
|
||||
#ifdef A_OPTION
|
||||
/*
|
||||
** Just what order *should* we do things in if the user asks
|
||||
** for both adjustment and time setting?
|
||||
*/
|
||||
if (aflag && value != NULL) {
|
||||
(void) fprintf(stderr,
|
||||
"date: error: attempt to both set and adjust time\n");
|
||||
if (retval == EXIT_SUCCESS)
|
||||
retval = EXIT_FAILURE;
|
||||
display((char *) NULL);
|
||||
}
|
||||
if (aflag)
|
||||
if (adjtime(&atv, (struct timeval *) NULL) != 0)
|
||||
oops("date: error: adjtime");
|
||||
|
||||
Reference in New Issue
Block a user