} TZ;
static TZ tz = {
+ .zone = NULL,
+ .local_rtc = false,
.can_ntp = -1,
.use_ntp = -1,
};
static int write_data_local_rtc(void) {
int r;
- char _cleanup_free_ *s = NULL, *w = NULL;
+ _cleanup_free_ char *s = NULL, *w = NULL;
r = read_full_file("/etc/adjtime", &s, NULL);
if (r < 0) {
}
static char** get_ntp_services(void) {
- char _cleanup_strv_free_ **r = NULL, **files;
+ _cleanup_strv_free_ char **r = NULL, **files;
char **i;
int k;
return NULL;
STRV_FOREACH(i, files) {
- FILE _cleanup_fclose_ *f;
+ _cleanup_fclose_ FILE *f;
f = fopen(*i, "re");
if (!f)
if (l[0] == 0 || l[0] == '#')
continue;
- if (strv_extend(&r, l) < 0)
+ if (strv_extend(&r, l) < 0) {
log_oom();
- return NULL;
+ return NULL;
+ }
}
}