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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"