Changes in uspace/app/date/date.c [b7fd2a0:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/date/date.c
rb7fd2a0 rd5c1051 39 39 #define NAME "date" 40 40 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);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); 44 44 static bool is_leap_year(int year); 45 45 … … 51 51 main(int argc, char **argv) 52 52 { 53 errno_t rc;53 int 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 errno_t199 static int 200 200 read_date_from_arg(char *wdate, struct tm *t) 201 201 { 202 errno_t rc;202 int rc; 203 203 uint32_t tmp; 204 204 … … 232 232 * with the following format: HH:MM:SS or HH:MM 233 233 */ 234 static errno_t234 static int 235 235 read_time_from_arg(char *wtime, struct tm *t) 236 236 { 237 errno_t rc;237 int 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 errno_t280 static int 281 281 tm_sanity_check(struct tm *t) 282 282 {
Note:
See TracChangeset
for help on using the changeset viewer.