svn commit: r224756 - stable/8/usr.bin/tftp

Xin LI delphij at FreeBSD.org
Wed Aug 10 08:55:47 UTC 2011


Author: delphij
Date: Wed Aug 10 08:55:46 2011
New Revision: 224756
URL: http://svn.freebsd.org/changeset/base/224756

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

Modified:
  stable/8/usr.bin/tftp/main.c
Directory Properties:
  stable/8/usr.bin/tftp/   (props changed)

Modified: stable/8/usr.bin/tftp/main.c
==============================================================================
--- stable/8/usr.bin/tftp/main.c	Wed Aug 10 08:54:35 2011	(r224755)
+++ stable/8/usr.bin/tftp/main.c	Wed Aug 10 08:55:46 2011	(r224756)
@@ -82,7 +82,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-stable-8 mailing list