diff options
author | Rosen Penev <rosenp@gmail.com> | 2017-10-30 12:05:30 -0700 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-11-06 09:06:31 +0100 |
commit | da5b8b4049d35cab2f5484940d122017228598fd (patch) | |
tree | c98ce7c7487167f400787d6836d72f38e976db8d | |
parent | dd61c9f1c68b067ab841c8f4d2008075e95fe29a (diff) | |
download | ubox-da5b8b4049d35cab2f5484940d122017228598fd.tar.gz |
log/syslog: Add missing static to two structs.
On x86, binary size goes down by 16 bytes.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r-- | log/syslog.c | 4 |
1 files 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, }; |