chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
consistently order cleanup attribute before type
[elogind.git]
/
src
/
journal
/
journal-remote.c
diff --git
a/src/journal/journal-remote.c
b/src/journal/journal-remote.c
index 915f234ab2d110394d0646124c54ff0af799578e..a31dc2c9801137ff44457aa1505319323e9bf579 100644
(file)
--- a/
src/journal/journal-remote.c
+++ b/
src/journal/journal-remote.c
@@
-139,7
+139,7
@@
static int spawn_curl(char* url) {
static int spawn_getter(char *getter, char *url) {
int r;
static int spawn_getter(char *getter, char *url) {
int r;
-
char _cleanup_strv_free_
**words = NULL;
+
_cleanup_strv_free_ char
**words = NULL;
assert(getter);
words = strv_split_quoted(getter);
assert(getter);
words = strv_split_quoted(getter);
@@
-154,7
+154,7
@@
static int spawn_getter(char *getter, char *url) {
}
static int open_output(Writer *s, const char* url) {
}
static int open_output(Writer *s, const char* url) {
-
char _cleanup_free_
*name, *output = NULL;
+
_cleanup_free_ char
*name, *output = NULL;
char *c;
int r;
char *c;
int r;
@@
-291,7
+291,7
@@
static int remove_source(RemoteServer *s, int fd) {
static int add_source(RemoteServer *s, int fd, const char* name) {
RemoteSource *source = NULL;
static int add_source(RemoteServer *s, int fd, const char* name) {
RemoteSource *source = NULL;
-
char *realname
;
+
_cleanup_free_ char *realname = NULL
;
int r;
assert(s);
int r;
assert(s);
@@
-307,11
+307,11
@@
static int add_source(RemoteServer *s, int fd, const char* name) {
return log_oom();
}
return log_oom();
}
- log_debug("Creating source for fd:%d (%s)", fd, name);
+ log_debug("Creating source for fd:%d (%s)", fd,
real
name);
r = get_source_for_fd(s, fd, &source);
if (r < 0) {
r = get_source_for_fd(s, fd, &source);
if (r < 0) {
- log_error("Failed to create source for fd:%d (%s)", fd, name);
+ log_error("Failed to create source for fd:%d (%s)", fd,
real
name);
return r;
}
assert(source);
return r;
}
assert(source);
@@
-745,8
+745,8
@@
static int remoteserver_init(RemoteServer *s) {
}
if (arg_url) {
}
if (arg_url) {
-
char _cleanup_free_
*url = NULL;
-
char _cleanup_strv_free_
**urlv = strv_new(arg_url, "/entries", NULL);
+
_cleanup_free_ char
*url = NULL;
+
_cleanup_strv_free_ char
**urlv = strv_new(arg_url, "/entries", NULL);
if (!urlv)
return log_oom();
url = strv_join(urlv, "");
if (!urlv)
return log_oom();
url = strv_join(urlv, "");