From 70f7f10476311288049565573338a4a821cef8a5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 27 Jan 2017 15:55:28 -0800 Subject: Add missing `static`s and remove an unused function. --- toys/net/ftpget.c | 2 +- toys/net/ifconfig.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/net') 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; -- cgit v1.2.3