summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/get_addrs.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-11 23:51:14 +0000
committermarkm <markm@FreeBSD.org>2001-12-11 23:51:14 +0000
commita82545dcd4cfdc337e6904afa3ab43097134c360 (patch)
treef29bbbc79d4e1b190fcac1c308cb1862054576e2 /usr.bin/talk/get_addrs.c
parent7f940dc06cf848e2e7af8e1dbc9c03d85f37d267 (diff)
downloadFreeBSD-src-a82545dcd4cfdc337e6904afa3ab43097134c360.zip
FreeBSD-src-a82545dcd4cfdc337e6904afa3ab43097134c360.tar.gz
WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().
Diffstat (limited to 'usr.bin/talk/get_addrs.c')
-rw-r--r--usr.bin/talk/get_addrs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/talk/get_addrs.c b/usr.bin/talk/get_addrs.c
index 871dc9a..f212a20 100644
--- a/usr.bin/talk/get_addrs.c
+++ b/usr.bin/talk/get_addrs.c
@@ -31,23 +31,24 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
-#if 0
-static char sccsid[] = "@(#)get_addrs.c 8.1 (Berkeley) 6/6/93";
+static const char sccsid[] = "@(#)get_addrs.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
#include <err.h>
#include <netdb.h>
#include <string.h>
+
#include "talk.h"
#include "talk_ctl.h"
void
get_addrs(my_machine_name, his_machine_name)
- char *my_machine_name, *his_machine_name;
+ char *my_machine_name __unused, *his_machine_name;
{
struct hostent *hp;
struct servent *sp;
OpenPOWER on IntegriCloud