From 7c9acc776a831a92f3c82548f38153cbad2a61f1 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 11 Jul 2011 05:57:49 +0000 Subject: [PATCH] peeraddr is only used in sizeof() evaluations, so instead of declaring it a variable, use typedef. MFC after: 1 month --- usr.bin/tftp/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index da0e5df1ad5f..2b0172eb3ca5 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -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;