[Toybox] [PATCH] net.c: add missing static.

enh enh at google.com
Fri Jul 12 15:52:23 PDT 2019


Pointed out during code review of the recent refactor.
---
 lib/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/net.c b/lib/net.c
index be69c9a3..02354444 100644
--- a/lib/net.c
+++ b/lib/net.c
@@ -37,7 +37,7 @@ struct addrinfo *xgetaddrinfo(char *host, char
*port, int family, int socktype,
   return ai;
 }

-int xconnbind(struct addrinfo *ai_arg, int dobind)
+static int xconnbind(struct addrinfo *ai_arg, int dobind)
 {
   struct addrinfo *ai;
   int fd = -1, one = 1;
-- 
2.22.0.510.g264f2c817a-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-net.c-add-missing-static.patch
Type: text/x-patch
Size: 729 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190712/ecb3b262/attachment-0002.bin>


More information about the Toybox mailing list