Date: Sat, 2 Mar 2013 16:38:58 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r247638 - stable/9/libexec/tftpd Message-ID: <201303021638.r22GcxVI058039@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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[] = {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303021638.r22GcxVI058039>