svn commit: r339455 - head/usr.sbin/rtsold
Mark Johnston
markj at FreeBSD.org
Sat Oct 20 17:43:28 UTC 2018
Author: markj
Date: Sat Oct 20 17:43:27 2018
New Revision: 339455
URL: https://svnweb.freebsd.org/changeset/base/339455
Log:
Staticize a couple of functions.
No functional change intended.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/rtsold/rtsold.c
head/usr.sbin/rtsold/rtsold.h
Modified: head/usr.sbin/rtsold/rtsold.c
==============================================================================
--- head/usr.sbin/rtsold/rtsold.c Sat Oct 20 17:42:38 2018 (r339454)
+++ head/usr.sbin/rtsold/rtsold.c Sat Oct 20 17:43:27 2018 (r339455)
@@ -97,6 +97,8 @@ static int do_dump;
static const char *dumpfilename = RTSOL_DUMPFILE;
#endif
+static char **autoifprobe(void);
+static int ifconfig(char *ifname);
static int make_packet(struct ifinfo *);
static struct timespec *rtsol_check_timer(void);
@@ -325,7 +327,7 @@ main(int argc, char **argv)
return (0);
}
-int
+static int
ifconfig(char *ifname)
{
struct ifinfo *ifi;
@@ -775,7 +777,7 @@ warnmsg(int priority, const char *func, const char *ms
/*
* return a list of interfaces which is suitable to sending an RS.
*/
-char **
+static char **
autoifprobe(void)
{
static char **argv = NULL;
Modified: head/usr.sbin/rtsold/rtsold.h
==============================================================================
--- head/usr.sbin/rtsold/rtsold.h Sat Oct 20 17:42:38 2018 (r339454)
+++ head/usr.sbin/rtsold/rtsold.h Sat Oct 20 17:43:27 2018 (r339455)
@@ -157,14 +157,12 @@ extern int Fflag;
extern int uflag;
extern const char *otherconf_script;
extern const char *resolvconf_script;
-extern int ifconfig(char *);
extern void iflist_init(void);
struct ifinfo *find_ifinfo(int);
struct rainfo *find_rainfo(struct ifinfo *, struct sockaddr_in6 *);
void rtsol_timer_update(struct ifinfo *);
extern void warnmsg(int, const char *, const char *, ...)
__attribute__((__format__(__printf__, 3, 4)));
-extern char **autoifprobe(void);
extern int ra_opt_handler(struct ifinfo *);
/* if.c */
More information about the svn-src-head
mailing list