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