chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add __attribute__((const, pure, format)) in various places
[elogind.git]
/
src
/
journal
/
catalog.c
diff --git
a/src/journal/catalog.c
b/src/journal/catalog.c
index 7681af66299b18370bed94f6e6c324a7170631aa..7738d243a58f3eaa575a10a2083d32c96f40385c 100644
(file)
--- a/
src/journal/catalog.c
+++ b/
src/journal/catalog.c
@@
-277,7
+277,7
@@
static long write_catalog(const char *database, Hashmap *h, struct strbuf *sb,
CatalogHeader header;
_cleanup_fclose_ FILE *w = NULL;
int r;
CatalogHeader header;
_cleanup_fclose_ FILE *w = NULL;
int r;
-
char _cleanup_free_
*d, *p = NULL;
+
_cleanup_free_ char
*d, *p = NULL;
size_t k;
d = dirname_malloc(database);
size_t k;
d = dirname_malloc(database);
@@
-627,7
+627,7
@@
int catalog_list_items(FILE *f, const char *database, bool oneline, char **items
STRV_FOREACH(item, items) {
sd_id128_t id;
int k;
STRV_FOREACH(item, items) {
sd_id128_t id;
int k;
-
char _cleanup_free_
*msg = NULL;
+
_cleanup_free_ char
*msg = NULL;
k = sd_id128_from_string(*item, &id);
if (k < 0) {
k = sd_id128_from_string(*item, &id);
if (k < 0) {