chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: add logging of effective capabilities _CAP_EFFECTIVE
[elogind.git]
/
src
/
journal
/
test-catalog.c
diff --git
a/src/journal/test-catalog.c
b/src/journal/test-catalog.c
index 21149f18a5519a6394bd6406b47b78f5acaf667f..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);
@@
-89,7
+89,6
@@
static const char* database = NULL;
static void test_catalog_update(void) {
int r;
static void test_catalog_update(void) {
int r;
- char _cleanup_free_ *path = NULL;
static char name[] = "/tmp/test-catalog.XXXXXX";
r = mkstemp(name);
static char name[] = "/tmp/test-catalog.XXXXXX";
r = mkstemp(name);