Author: marius
Date: Sat Mar  2 16:38:58 2013
New Revision: 247638
URL: http://svnweb.freebsd.org/changeset/base/247638

Log:
  MFC: r241720 (partial)
  
  Fix warnings found by -Wmising-variable-declarations.

Modified:
  stable/9/libexec/tftpd/tftp-io.c
  stable/9/libexec/tftpd/tftp-utils.c
  stable/9/libexec/tftpd/tftpd.c
Directory Properties:
  stable/9/libexec/tftpd/   (props changed)

Modified: stable/9/libexec/tftpd/tftp-io.c
==============================================================================
--- stable/9/libexec/tftpd/tftp-io.c    Sat Mar  2 16:33:43 2013        
(r247637)
+++ stable/9/libexec/tftpd/tftp-io.c    Sat Mar  2 16:38:58 2013        
(r247638)
@@ -53,7 +53,7 @@ struct sockaddr_storage me_sock;
 
 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 @@ send_data(int peer, uint16_t block, char
 /*
  * Receive a packet
  */
-jmp_buf        timeoutbuf;
+static jmp_buf timeoutbuf;
 
 static void
 timeout(int sig __unused)

Modified: stable/9/libexec/tftpd/tftp-utils.c
==============================================================================
--- stable/9/libexec/tftpd/tftp-utils.c Sat Mar  2 16:33:43 2013        
(r247637)
+++ stable/9/libexec/tftpd/tftp-utils.c Sat Mar  2 16:38:58 2013        
(r247638)
@@ -121,7 +121,7 @@ get_field(int peer, char *buffer, ssize_
 /*
  * Logging functions
  */
-int    _tftp_logtostdout = 1;
+static int _tftp_logtostdout = 1;
 
 void
 tftp_openlog(const char *ident, int logopt, int facility)

Modified: stable/9/libexec/tftpd/tftpd.c
==============================================================================
--- stable/9/libexec/tftpd/tftpd.c      Sat Mar  2 16:33:43 2013        
(r247637)
+++ stable/9/libexec/tftpd/tftpd.c      Sat Mar  2 16:38:58 2013        
(r247638)
@@ -107,9 +107,9 @@ static void tftp_xmitfile(int peer, cons
 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[] = {
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to