[Midnightbsd-cvs] src [8881] trunk/libexec/tftpd: fix warnings

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 26 18:23:18 EDT 2016


Revision: 8881
          http://svnweb.midnightbsd.org/src/?rev=8881
Author:   laffer1
Date:     2016-09-26 18:23:18 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
fix warnings

Modified Paths:
--------------
    trunk/libexec/tftpd/tftp-io.c
    trunk/libexec/tftpd/tftp-utils.c
    trunk/libexec/tftpd/tftpd.c

Modified: trunk/libexec/tftpd/tftp-io.c
===================================================================
--- trunk/libexec/tftpd/tftp-io.c	2016-09-26 22:22:49 UTC (rev 8880)
+++ trunk/libexec/tftpd/tftp-io.c	2016-09-26 22:23:18 UTC (rev 8881)
@@ -53,7 +53,7 @@
 
 static int send_packet(int peer, uint16_t block, char *pkt, int size);
 
-struct errmsg {
+static struct errmsg {
 	int	e_code;
 	const char	*e_msg;
 } errmsgs[] = {
@@ -374,7 +374,7 @@
 /*
  * Receive a packet
  */
-jmp_buf	timeoutbuf;
+static jmp_buf timeoutbuf;
 
 static void
 timeout(int sig __unused)

Modified: trunk/libexec/tftpd/tftp-utils.c
===================================================================
--- trunk/libexec/tftpd/tftp-utils.c	2016-09-26 22:22:49 UTC (rev 8880)
+++ trunk/libexec/tftpd/tftp-utils.c	2016-09-26 22:23:18 UTC (rev 8881)
@@ -121,7 +121,7 @@
 /*
  * Logging functions
  */
-int	_tftp_logtostdout = 1;
+static int _tftp_logtostdout = 1;
 
 void
 tftp_openlog(const char *ident, int logopt, int facility)

Modified: trunk/libexec/tftpd/tftpd.c
===================================================================
--- trunk/libexec/tftpd/tftpd.c	2016-09-26 22:22:49 UTC (rev 8880)
+++ trunk/libexec/tftpd/tftpd.c	2016-09-26 22:23:18 UTC (rev 8881)
@@ -107,9 +107,9 @@
 static int	validate_access(int peer, char **, int);
 static char	peername[NI_MAXHOST];
 
-FILE *file;
+static FILE *file;
 
-struct formats {
+static struct formats {
 	const char	*f_mode;
 	int	f_convert;
 } formats[] = {



More information about the Midnightbsd-cvs mailing list