projects
/
project
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd61c9f
)
log/syslog: Add missing static to two structs.
author
Rosen Penev
<rosenp@gmail.com>
Mon, 30 Oct 2017 19:05:30 +0000
(12:05 -0700)
committer
John 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
patch
|
blob
|
history
diff --git
a/log/syslog.c
b/log/syslog.c
index 856fa60edce459f7cf525384b9d128dbdc8218ad..754baa9c62ed05d013cbc707052b20c77bf01438 100644
(file)
--- 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 = {
+st
atic st
ruct ustream_fd slog = {
.stream.string_data = true,
.stream.notify_read = slog_cb,
};
-struct ustream_fd klog = {
+st
atic st
ruct ustream_fd klog = {
.stream.string_data = true,
.stream.notify_read = klog_cb,
};