Changes in uspace/app/date/date.c [1d6dd2a:38d150e] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/date/date.c

    r1d6dd2a r38d150e  
    3636#include <getopt.h>
    3737#include <ctype.h>
    38 #include <str.h>
    3938
    4039#define NAME   "date"
    4140
    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);
     41static int read_date_from_arg(char *wdate, struct tm *t);
     42static int read_time_from_arg(char *wdate, struct tm *t);
     43static int tm_sanity_check(struct tm *t);
    4544static bool is_leap_year(int year);
    4645
     
    5251main(int argc, char **argv)
    5352{
    54         errno_t rc;
    55         int c;
     53        int rc, c;
    5654        category_id_t cat_id;
    5755        size_t        svc_cnt;
     
    198196 *  with the following format: DD/MM/YYYY
    199197 */
    200 static errno_t
     198static int
    201199read_date_from_arg(char *wdate, struct tm *t)
    202200{
    203         errno_t rc;
     201        int rc;
    204202        uint32_t tmp;
    205203
     
    233231 *  with the following format: HH:MM:SS or HH:MM
    234232 */
    235 static errno_t
     233static int
    236234read_time_from_arg(char *wtime, struct tm *t)
    237235{
    238         errno_t rc;
     236        int rc;
    239237        size_t len = str_size(wtime);
    240238        bool sec_present = len == 8;
     
    279277 * @return      EOK on success or EINVAL
    280278 */
    281 static errno_t
     279static int
    282280tm_sanity_check(struct tm *t)
    283281{
Note: See TracChangeset for help on using the changeset viewer.