[LEDE-DEV] [PATCH 1/3] log/syslog: Add missing static to two structs.
Rosen Penev
rosenp at gmail.com
Mon Oct 30 12:05:30 PDT 2017
On x86, binary size goes down by 16 bytes.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
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.13.6
More information about the Lede-dev
mailing list