X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.c;h=1fc6c5aa1adf63476e1c7406b527b51f2896bd1f;hb=7fd1b19bc9e9f5574f2877936b8ac267c7706947;hp=e8431839b044ecfb190772eaf4999e20f30c6930;hpb=d70964d0f61f1add3a71c83beb925fc1fa2fab6b;p=elogind.git diff --git a/src/shared/util.c b/src/shared/util.c index e8431839b..1fc6c5aa1 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -2080,7 +2080,7 @@ int release_terminal(void) { .sa_handler = SIG_IGN, .sa_flags = SA_RESTART, }; - int _cleanup_close_ fd; + _cleanup_close_ int fd; fd = open("/dev/tty", O_RDWR|O_NOCTTY|O_NDELAY|O_CLOEXEC); if (fd < 0) @@ -4344,7 +4344,7 @@ int in_group(const char *name) { } int glob_exists(const char *path) { - glob_t _cleanup_globfree_ g = {}; + _cleanup_globfree_ glob_t g = {}; int r, k; assert(path);