chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keymap: Add support for Eject button on MSI GE60/GE70
[elogind.git]
/
src
/
journal
/
test-catalog.c
diff --git
a/src/journal/test-catalog.c
b/src/journal/test-catalog.c
index c46303589154cec05ffe671e513a6535c6097f8f..987867f0c8b3dfd0dd907c8dc87b1d59e68dca41 100644
(file)
--- a/
src/journal/test-catalog.c
+++ b/
src/journal/test-catalog.c
@@
-35,7
+35,7
@@
static void test_import(Hashmap *h, struct strbuf *sb,
const char* contents, ssize_t size, int code) {
int r;
char name[] = "/tmp/test-catalog.XXXXXX";
const char* contents, ssize_t size, int code) {
int r;
char name[] = "/tmp/test-catalog.XXXXXX";
-
int _cleanup_close_
fd = mkstemp(name);
+
_cleanup_close_ int
fd = mkstemp(name);
assert(fd >= 0);
assert_se(write(fd, contents, size) == size);
assert(fd >= 0);
assert_se(write(fd, contents, size) == size);