summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/get_iface.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2008-04-28 21:08:42 +0000
committerdelphij <delphij@FreeBSD.org>2008-04-28 21:08:42 +0000
commit27563c633dabd72e3b50f8f07e4505a40b4c82ad (patch)
tree97dad06a487d87e06e7131be3665c891231215b7 /usr.bin/talk/get_iface.c
parent2723f83a5a450a3124fab55051d0bae64dce7f3e (diff)
downloadFreeBSD-src-27563c633dabd72e3b50f8f07e4505a40b4c82ad.zip
FreeBSD-src-27563c633dabd72e3b50f8f07e4505a40b4c82ad.tar.gz
ANSIfy function prototypes. While I am there, constify some parameters and
make use of C99 sparse initialization for static variables, this makes talk(1) to compile cleanly with WARNS=6.
Diffstat (limited to 'usr.bin/talk/get_iface.c')
-rw-r--r--usr.bin/talk/get_iface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/talk/get_iface.c b/usr.bin/talk/get_iface.c
index d7cca18..ebf08bd 100644
--- a/usr.bin/talk/get_iface.c
+++ b/usr.bin/talk/get_iface.c
@@ -47,9 +47,7 @@ __FBSDID("$FreeBSD$");
*/
int
-get_iface(dst, iface)
- struct in_addr *dst;
- struct in_addr *iface;
+get_iface(struct in_addr *dst, struct in_addr *iface)
{
static struct sockaddr_in local;
struct sockaddr_in remote;
OpenPOWER on IntegriCloud