svn commit: r223926 - head/usr.bin/tftp

Xin LI delphij at FreeBSD.org
Mon Jul 11 05:57:50 UTC 2011


Author: delphij
Date: Mon Jul 11 05:57:49 2011
New Revision: 223926
URL: http://svn.freebsd.org/changeset/base/223926

Log:
  peeraddr is only used in sizeof() evaluations, so instead of declaring it
  a variable, use typedef.
  
  MFC after:	1 month

Modified:
  head/usr.bin/tftp/main.c

Modified: head/usr.bin/tftp/main.c
==============================================================================
--- head/usr.bin/tftp/main.c	Mon Jul 11 05:50:24 2011	(r223925)
+++ head/usr.bin/tftp/main.c	Mon Jul 11 05:57:49 2011	(r223926)
@@ -77,7 +77,7 @@ __FBSDID("$FreeBSD$");
 #define	MAXLINE		200
 #define	TIMEOUT		5		/* secs between rexmt's */
 
-static struct	sockaddr_storage peeraddr;
+typedef struct	sockaddr_storage peeraddr;
 static int	connected;
 static char	mode[32];
 jmp_buf		toplevel;


More information about the svn-src-head mailing list