summaryrefslogtreecommitdiff
path: root/src/timedate/timedated.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-04-18 09:11:22 +0200
committerHarald Hoyer <harald@redhat.com>2013-04-18 09:11:22 +0200
commit7fd1b19bc9e9f5574f2877936b8ac267c7706947 (patch)
treecac68de0832e4a61944e88390b649341519c43b2 /src/timedate/timedated.c
parentd70964d0f61f1add3a71c83beb925fc1fa2fab6b (diff)
downloadsystemd-7fd1b19bc9e9f5574f2877936b8ac267c7706947.tar.gz
systemd-7fd1b19bc9e9f5574f2877936b8ac267c7706947.tar.bz2
systemd-7fd1b19bc9e9f5574f2877936b8ac267c7706947.zip
move _cleanup_ attribute in front of the type
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r--src/timedate/timedated.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index bb134b7fff..cdb6e5b16c 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -218,7 +218,7 @@ static int write_data_timezone(void) {
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) {
@@ -270,7 +270,7 @@ static int write_data_local_rtc(void) {
}
static char** get_ntp_services(void) {
- char _cleanup_strv_free_ **r = NULL, **files;
+ _cleanup_strv_free_ char **r = NULL, **files;
char **i;
int k;
@@ -284,7 +284,7 @@ static char** get_ntp_services(void) {
return NULL;
STRV_FOREACH(i, files) {
- FILE _cleanup_fclose_ *f;
+ _cleanup_fclose_ FILE *f;
f = fopen(*i, "re");
if (!f)