diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 19:43:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 19:43:55 +0000 |
commit | be77049622266cc17c3bdcf5a5133d4d840c017e (patch) | |
tree | 961945ab4f9c5985e18ccf2b03d4c0e4187fce58 /libexec/talkd/talkd.c | |
parent | 11cebf79245d373cc7a70e7f78fff2b465e010f2 (diff) |
use socklen_t more; henning ok
Diffstat (limited to 'libexec/talkd/talkd.c')
-rw-r--r-- | libexec/talkd/talkd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c index e3c835a40cc..51b8e489214 100644 --- a/libexec/talkd/talkd.c +++ b/libexec/talkd/talkd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: talkd.c,v 1.13 2002/07/03 16:59:05 vincent Exp $ */ +/* $OpenBSD: talkd.c,v 1.14 2002/09/06 19:43:54 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)talkd.c 5.8 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: talkd.c,v 1.13 2002/07/03 16:59:05 vincent Exp $"; +static char rcsid[] = "$Id: talkd.c,v 1.14 2002/09/06 19:43:54 deraadt Exp $"; #endif /* not lint */ /* @@ -100,8 +100,9 @@ main(argc, argv) for (;;) { CTL_RESPONSE response; - int cc, len = sizeof(response.addr); + socklen_t len = sizeof(response.addr); CTL_MSG request; + int cc; cc = recvfrom(STDIN_FILENO, (char *)&request, sizeof (request), 0, (struct sockaddr *)&response.addr, |