Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2011 08:55:46 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224756 - stable/8/usr.bin/tftp
Message-ID:  <201108100855.p7A8tkQt033487@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108100855.p7A8tkQt033487>