Changeset 0885f7e in mainline
- Timestamp:
- 2012-04-18T21:46:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad2718d
- Parents:
- e341110
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/date/date.c
re341110 r0885f7e 59 59 sysarg_t battery_ok; 60 60 struct tm t; 61 int n_args = argc; 61 62 62 63 while ((c = getopt(argc, argv, "hd:t:")) != -1) { … … 66 67 return 0; 67 68 case 'd': 69 if (wdate) { 70 usage(); 71 return 1; 72 } 68 73 wdate = (char *)optarg; 69 74 read_only = false; 75 n_args -= 2; 70 76 break; 71 77 case 't': 78 if (wtime) { 79 usage(); 80 return 1; 81 } 72 82 wtime = (char *)optarg; 73 83 read_only = false; 84 n_args -= 2; 74 85 break; 75 86 case '?': … … 77 88 return 1; 78 89 } 90 } 91 92 if (n_args != 1) { 93 printf(NAME ": Unrecognized parameter\n"); 94 usage(); 95 return 1; 79 96 } 80 97
Note:
See TracChangeset
for help on using the changeset viewer.