diff options
author | Shawn Landden <shawnlandden@gmail.com> | 2013-08-21 18:20:55 -0700 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-08-22 00:52:14 -0400 |
commit | 2a0e0692565f0435657c93498e09cbb2d3517152 (patch) | |
tree | d5fb3d6352aed75b11b2e38dc65486016ff88357 /src/journal/journal-send.c | |
parent | 67c15b9a7ac016ac5c9b885756b2eaa7f44a0509 (diff) |
remove hasprefix(), use startswith()
Diffstat (limited to 'src/journal/journal-send.c')
-rw-r--r-- | src/journal/journal-send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index fef66fc29a..d00e26f1eb 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -245,7 +245,7 @@ _public_ int sd_journal_sendv(const struct iovec *iov, int n) { have_syslog_identifier = have_syslog_identifier || (c == (char *) iov[i].iov_base + 17 && - hasprefix(iov[i].iov_base, "SYSLOG_IDENTIFIER")); + startswith(iov[i].iov_base, "SYSLOG_IDENTIFIER")); nl = memchr(iov[i].iov_base, '\n', iov[i].iov_len); if (nl) { |