log/syslog: Add missing static to two structs.
authorRosen Penev <rosenp@gmail.com>
Mon, 30 Oct 2017 19:05:30 +0000 (12:05 -0700)
committerJohn Crispin <john@phrozen.org>
Mon, 6 Nov 2017 08:06:31 +0000 (09:06 +0100)
On x86, binary size goes down by 16 bytes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
log/syslog.c

index 856fa60edce459f7cf525384b9d128dbdc8218ad..754baa9c62ed05d013cbc707052b20c77bf01438 100644 (file)
@@ -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,
 };