From da5b8b4049d35cab2f5484940d122017228598fd Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 30 Oct 2017 12:05:30 -0700 Subject: [PATCH] log/syslog: Add missing static to two structs. On x86, binary size goes down by 16 bytes. Signed-off-by: Rosen Penev --- log/syslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/syslog.c b/log/syslog.c index 856fa60..754baa9 100644 --- a/log/syslog.c +++ b/log/syslog.c @@ -172,12 +172,12 @@ klog_cb(struct ustream *s, int bytes) } while (1); } -struct ustream_fd slog = { +static struct ustream_fd slog = { .stream.string_data = true, .stream.notify_read = slog_cb, }; -struct ustream_fd klog = { +static struct ustream_fd klog = { .stream.string_data = true, .stream.notify_read = klog_cb, }; -- 2.11.0