diff mbox series

[LEDE-DEV,1/3] log/syslog: Add missing static to two structs.

Message ID 20171030190532.2469-1-rosenp@gmail.com
State Accepted
Headers show
Series [LEDE-DEV,1/3] log/syslog: Add missing static to two structs. | expand

Commit Message

Rosen Penev Oct. 30, 2017, 7:05 p.m. UTC
On x86, binary size goes down by 16 bytes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 log/syslog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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,
 };