Changeset b7fd2a0 in mainline for uspace/app/date/date.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/date/date.c
r36f0738 rb7fd2a0 39 39 #define NAME "date" 40 40 41 static int read_date_from_arg(char *wdate, struct tm *t);42 static int read_time_from_arg(char *wdate, struct tm *t);43 static int tm_sanity_check(struct tm *t);41 static errno_t read_date_from_arg(char *wdate, struct tm *t); 42 static errno_t read_time_from_arg(char *wdate, struct tm *t); 43 static errno_t tm_sanity_check(struct tm *t); 44 44 static bool is_leap_year(int year); 45 45 … … 51 51 main(int argc, char **argv) 52 52 { 53 int rc;53 errno_t rc; 54 54 int c; 55 55 category_id_t cat_id; … … 197 197 * with the following format: DD/MM/YYYY 198 198 */ 199 static int199 static errno_t 200 200 read_date_from_arg(char *wdate, struct tm *t) 201 201 { 202 int rc;202 errno_t rc; 203 203 uint32_t tmp; 204 204 … … 232 232 * with the following format: HH:MM:SS or HH:MM 233 233 */ 234 static int234 static errno_t 235 235 read_time_from_arg(char *wtime, struct tm *t) 236 236 { 237 int rc;237 errno_t rc; 238 238 size_t len = str_size(wtime); 239 239 bool sec_present = len == 8; … … 278 278 * @return EOK on success or EINVAL 279 279 */ 280 static int280 static errno_t 281 281 tm_sanity_check(struct tm *t) 282 282 {
Note:
See TracChangeset
for help on using the changeset viewer.