summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/ringbuf.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-10-16 22:12:50 +0000
committerbluhm <bluhm@openbsd.org>2016-10-16 22:12:50 +0000
commitc572cfa710a368c2fa815a9371225c763a87b50c (patch)
tree31092883f6bac7fd8e09d1ab0e4d0e8cd69c4f54 /usr.sbin/syslogd/ringbuf.c
parentUse the notify name string instead of going via an enum and change (diff)
downloadwireguard-openbsd-c572cfa710a368c2fa815a9371225c763a87b50c.tar.xz
wireguard-openbsd-c572cfa710a368c2fa815a9371225c763a87b50c.zip
Fix trailing whitespace and shorten long lines.
No binary change.
Diffstat (limited to 'usr.sbin/syslogd/ringbuf.c')
-rw-r--r--usr.sbin/syslogd/ringbuf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/ringbuf.c b/usr.sbin/syslogd/ringbuf.c
index a7259f18d07..904a28982f1 100644
--- a/usr.sbin/syslogd/ringbuf.c
+++ b/usr.sbin/syslogd/ringbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ringbuf.c,v 1.9 2015/07/06 16:12:16 millert Exp $ */
+/* $OpenBSD: ringbuf.c,v 1.10 2016/10/16 22:12:50 bluhm Exp $ */
/*
* Copyright (c) 2004 Damien Miller
@@ -153,7 +153,8 @@ ringbuf_to_string(char *buf, size_t len, struct ringbuf *rb)
n = rb->len - rb->start;
memcpy(buf, rb->buf + rb->start, MINIMUM(n, copy_len));
if (copy_len > n)
- memcpy(buf + n, rb->buf, MINIMUM(rb->end, copy_len - n));
+ memcpy(buf + n, rb->buf,
+ MINIMUM(rb->end, copy_len - n));
}
buf[copy_len] = '\0';