Changes in uspace/app/date/date.c [1d6dd2a:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/date/date.c
r1d6dd2a r38d150e 36 36 #include <getopt.h> 37 37 #include <ctype.h> 38 #include <str.h>39 38 40 39 #define NAME "date" 41 40 42 static errno_t read_date_from_arg(char *wdate, struct tm *t);43 static errno_t read_time_from_arg(char *wdate, struct tm *t);44 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); 45 44 static bool is_leap_year(int year); 46 45 … … 52 51 main(int argc, char **argv) 53 52 { 54 errno_t rc; 55 int c; 53 int rc, c; 56 54 category_id_t cat_id; 57 55 size_t svc_cnt; … … 198 196 * with the following format: DD/MM/YYYY 199 197 */ 200 static errno_t198 static int 201 199 read_date_from_arg(char *wdate, struct tm *t) 202 200 { 203 errno_t rc;201 int rc; 204 202 uint32_t tmp; 205 203 … … 233 231 * with the following format: HH:MM:SS or HH:MM 234 232 */ 235 static errno_t233 static int 236 234 read_time_from_arg(char *wtime, struct tm *t) 237 235 { 238 errno_t rc;236 int rc; 239 237 size_t len = str_size(wtime); 240 238 bool sec_present = len == 8; … … 279 277 * @return EOK on success or EINVAL 280 278 */ 281 static errno_t279 static int 282 280 tm_sanity_check(struct tm *t) 283 281 {
Note:
See TracChangeset
for help on using the changeset viewer.