summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-16 07:52:41 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-16 07:53:02 -0400
commit40780a626def76f611807b71994fdaafac4d2b7b (patch)
tree6ce076fcbbfd69c57c12ee644dab061c82bfaa7a /src
parenta812a8816c350261ab1ed6a2583fa4ec09b1eb4d (diff)
journal-remote: remove obsolete variable
Diffstat (limited to 'src')
-rw-r--r--src/journal-remote/journal-remote.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index e127b0b800..08de9d03ae 100644
--- a/src/journal-remote/journal-remote.c
+++ b/src/journal-remote/journal-remote.c
@@ -803,7 +803,6 @@ static int remoteserver_init(RemoteServer *s,
const char* cert,
const char* trust) {
int r, n, fd;
- const char *output_name = NULL;
char **file;
assert(s);
@@ -869,8 +868,6 @@ static int remoteserver_init(RemoteServer *s,
fd, strerror(-r));
return r;
}
-
- output_name = "socket";
}
if (arg_url) {
@@ -896,8 +893,6 @@ static int remoteserver_init(RemoteServer *s,
r = add_source(s, fd, (char*) hostname, false);
if (r < 0)
return r;
-
- output_name = arg_url;
}
if (arg_listen_raw) {
@@ -905,27 +900,23 @@ static int remoteserver_init(RemoteServer *s,
r = setup_raw_socket(s, arg_listen_raw);
if (r < 0)
return r;
-
- output_name = arg_listen_raw;
}
if (arg_listen_http) {
r = setup_microhttpd_socket(s, arg_listen_http, NULL, NULL, NULL);
if (r < 0)
return r;
-
- output_name = arg_listen_http;
}
if (arg_listen_https) {
r = setup_microhttpd_socket(s, arg_listen_https, key, cert, trust);
if (r < 0)
return r;
-
- output_name = arg_listen_https;
}
STRV_FOREACH(file, arg_files) {
+ const char *output_name;
+
if (streq(*file, "-")) {
log_info("Using standard input as source.");
@@ -952,9 +943,6 @@ static int remoteserver_init(RemoteServer *s,
return -EINVAL;
}
- if (!!n + !!arg_url + !!arg_listen_raw + !!arg_files)
- output_name = "multiple";
-
r = init_writer_hashmap(s);
if (r < 0)
return r;