Changes in uspace/app/date/date.c [b7fd2a0:d5c1051] in mainline


Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 rd5c1051  
    3939#define NAME   "date"
    4040
    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);
     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);
    4444static bool is_leap_year(int year);
    4545
     
    5151main(int argc, char **argv)
    5252{
    53         errno_t rc;
     53        int rc;
    5454        int c;
    5555        category_id_t cat_id;
     
    197197 *  with the following format: DD/MM/YYYY
    198198 */
    199 static errno_t
     199static int
    200200read_date_from_arg(char *wdate, struct tm *t)
    201201{
    202         errno_t rc;
     202        int rc;
    203203        uint32_t tmp;
    204204
     
    232232 *  with the following format: HH:MM:SS or HH:MM
    233233 */
    234 static errno_t
     234static int
    235235read_time_from_arg(char *wtime, struct tm *t)
    236236{
    237         errno_t rc;
     237        int rc;
    238238        size_t len = str_size(wtime);
    239239        bool sec_present = len == 8;
     
    278278 * @return      EOK on success or EINVAL
    279279 */
    280 static errno_t
     280static int
    281281tm_sanity_check(struct tm *t)
    282282{
Note: See TracChangeset for help on using the changeset viewer.