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


Ignore:
File:
1 edited

Legend:

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

    r38d150e r1d6dd2a  
    3636#include <getopt.h>
    3737#include <ctype.h>
     38#include <str.h>
    3839
    3940#define NAME   "date"
    4041
    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);
     42static errno_t read_date_from_arg(char *wdate, struct tm *t);
     43static errno_t read_time_from_arg(char *wdate, struct tm *t);
     44static errno_t tm_sanity_check(struct tm *t);
    4445static bool is_leap_year(int year);
    4546
     
    5152main(int argc, char **argv)
    5253{
    53         int rc, c;
     54        errno_t rc;
     55        int c;
    5456        category_id_t cat_id;
    5557        size_t        svc_cnt;
     
    196198 *  with the following format: DD/MM/YYYY
    197199 */
    198 static int
     200static errno_t
    199201read_date_from_arg(char *wdate, struct tm *t)
    200202{
    201         int rc;
     203        errno_t rc;
    202204        uint32_t tmp;
    203205
     
    231233 *  with the following format: HH:MM:SS or HH:MM
    232234 */
    233 static int
     235static errno_t
    234236read_time_from_arg(char *wtime, struct tm *t)
    235237{
    236         int rc;
     238        errno_t rc;
    237239        size_t len = str_size(wtime);
    238240        bool sec_present = len == 8;
     
    277279 * @return      EOK on success or EINVAL
    278280 */
    279 static int
     281static errno_t
    280282tm_sanity_check(struct tm *t)
    281283{
Note: See TracChangeset for help on using the changeset viewer.