aboutsummaryrefslogtreecommitdiff
path: root/toys/net
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-01-27 15:55:28 -0800
committerRob Landley <rob@landley.net>2017-01-28 17:41:16 -0600
commit70f7f10476311288049565573338a4a821cef8a5 (patch)
tree35c53bf0effb587ca67e3f21ab63ccb9c62797aa /toys/net
parent8ceb2dec8b7233385c1b2983c907592c46a48bd8 (diff)
downloadtoybox-70f7f10476311288049565573338a4a821cef8a5.tar.gz
Add missing `static`s and remove an unused function.
Diffstat (limited to 'toys/net')
-rw-r--r--toys/net/ftpget.c2
-rw-r--r--toys/net/ifconfig.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/toys/net/ftpget.c b/toys/net/ftpget.c
index 6ead05ef..94e5caed 100644
--- a/toys/net/ftpget.c
+++ b/toys/net/ftpget.c
@@ -54,7 +54,7 @@ GLOBALS(
)
// we should get one line of data, but it may be in multiple chunks
-int xread2line(int fd, char *buf, int len)
+static int xread2line(int fd, char *buf, int len)
{
int i, total = 0;
diff --git a/toys/net/ifconfig.c b/toys/net/ifconfig.c
index 174369fe..fe58b653 100644
--- a/toys/net/ifconfig.c
+++ b/toys/net/ifconfig.c
@@ -58,7 +58,7 @@ GLOBALS(
// Convert hostname to binary address for AF_INET or AF_INET6
// return /prefix (or range max if none)
-int get_addrinfo(char *host, sa_family_t af, void *addr)
+static int get_addrinfo(char *host, sa_family_t af, void *addr)
{
struct addrinfo hints, *result, *rp = 0;
int status, len;