chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move _cleanup_ attribute in front of the type
[elogind.git]
/
src
/
shared
/
utmp-wtmp.c
diff --git
a/src/shared/utmp-wtmp.c
b/src/shared/utmp-wtmp.c
index 5ee3d22e71e43ea083c876b63d065e14cbfe10df..342e0a9cf1aceefb7dd7313e9da6a5307a2b8781 100644
(file)
--- a/
src/shared/utmp-wtmp.c
+++ b/
src/shared/utmp-wtmp.c
@@
-287,7
+287,7
@@
int utmp_put_runlevel(int runlevel, int previous) {
#define TIMEOUT_MSEC 50
static int write_to_terminal(const char *tty, const char *message) {
#define TIMEOUT_MSEC 50
static int write_to_terminal(const char *tty, const char *message) {
-
int _cleanup_close_
fd = -1;
+
_cleanup_close_ int
fd = -1;
const char *p;
size_t left;
usec_t end;
const char *p;
size_t left;
usec_t end;