summaryrefslogtreecommitdiff
path: root/src/journal/journal-send.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-05 21:43:49 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-05 21:46:48 +0100
commit4cd9a9d9ecf3a8835e21930f3215a5f5b74144be (patch)
tree3f80971f11384561d85fa04a6efd8f65bc28be3f /src/journal/journal-send.c
parent258cdffc2f9f8cd3d243bd19f507bc73009d77d9 (diff)
journal: rename syslog tag to identifier since that's what we call it on the server side.
Diffstat (limited to 'src/journal/journal-send.c')
-rw-r--r--src/journal/journal-send.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c
index c382264682..ddf503b18d 100644
--- a/src/journal/journal-send.c
+++ b/src/journal/journal-send.c
@@ -209,7 +209,7 @@ _public_ int sd_journal_sendv(const struct iovec *iov, int n) {
return 0;
}
-_public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_prefix) {
+_public_ int sd_journal_stream_fd(const char *identifier, int priority, int level_prefix) {
union sockaddr_union sa;
int fd;
char *header;
@@ -238,17 +238,17 @@ _public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_pr
return -errno;
}
- if (!tag)
- tag = "";
+ if (!identifier)
+ identifier = "";
- l = strlen(tag);
+ l = strlen(identifier);
header = alloca(l + 1 + 2 + 2 + 2 + 2 + 2);
- memcpy(header, tag, l);
+ memcpy(header, identifier, l);
header[l++] = '\n';
header[l++] = '0' + priority;
header[l++] = '\n';
- header[l++] = '0' + !!priority_prefix;
+ header[l++] = '0' + !!level_prefix;
header[l++] = '\n';
header[l++] = '0';
header[l++] = '\n';