time-util: rename variables
This commit is contained in:
@@ -146,15 +146,15 @@ static inline char* format_timestamp(char *buf, size_t l, usec_t t) {
|
||||
#define FORMAT_TIMESTAMP_STYLE(t, style) \
|
||||
format_timestamp_style((char[FORMAT_TIMESTAMP_MAX]){}, FORMAT_TIMESTAMP_MAX, t, style)
|
||||
|
||||
int parse_timestamp(const char *t, usec_t *usec);
|
||||
int parse_timestamp(const char *t, usec_t *ret);
|
||||
|
||||
int parse_sec(const char *t, usec_t *usec);
|
||||
int parse_sec_fix_0(const char *t, usec_t *usec);
|
||||
int parse_sec_def_infinity(const char *t, usec_t *usec);
|
||||
int parse_time(const char *t, usec_t *usec, usec_t default_unit);
|
||||
int parse_nsec(const char *t, nsec_t *nsec);
|
||||
int parse_sec(const char *t, usec_t *ret);
|
||||
int parse_sec_fix_0(const char *t, usec_t *ret);
|
||||
int parse_sec_def_infinity(const char *t, usec_t *ret);
|
||||
int parse_time(const char *t, usec_t *ret, usec_t default_unit);
|
||||
int parse_nsec(const char *t, nsec_t *ret);
|
||||
|
||||
int get_timezones(char ***l);
|
||||
int get_timezones(char ***ret);
|
||||
int verify_timezone(const char *name, int log_level);
|
||||
static inline bool timezone_is_valid(const char *name, int log_level) {
|
||||
return verify_timezone(name, log_level) >= 0;
|
||||
@@ -164,7 +164,7 @@ bool clock_supported(clockid_t clock);
|
||||
|
||||
usec_t usec_shift_clock(usec_t, clockid_t from, clockid_t to);
|
||||
|
||||
int get_timezone(char **timezone);
|
||||
int get_timezone(char **ret);
|
||||
|
||||
time_t mktime_or_timegm(struct tm *tm, bool utc);
|
||||
struct tm *localtime_or_gmtime_r(const time_t *t, struct tm *tm, bool utc);
|
||||
|
||||
Reference in New Issue
Block a user