summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypset
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-02-06 15:26:07 +0000
committerdes <des@FreeBSD.org>2002-02-06 15:26:07 +0000
commitd7b064e238d98e1c9942cfb6e53c0767893310b1 (patch)
tree9c2a46d61c0b1ec2538854e870b6861acfd2ee7a /usr.sbin/ypset
parent0f2cb9b020b907000a28323fc57a82fdb7d6626d (diff)
downloadFreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.zip
FreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.tar.gz
ANSIfy and remove some dead code.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/ypset')
-rw-r--r--usr.sbin/ypset/ypset.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ypset/ypset.c b/usr.sbin/ypset/ypset.c
index 5b3e7cb..b75926a 100644
--- a/usr.sbin/ypset/ypset.c
+++ b/usr.sbin/ypset/ypset.c
@@ -50,16 +50,14 @@ struct dom_binding{};
extern bool_t xdr_domainname();
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: ypset [-h host] [-d domain] server\n");
exit(1);
}
int
-bind_tohost(sin, dom, server)
-struct sockaddr_in *sin;
-char *dom, *server;
+bind_tohost(struct sockaddr_in *sin, char *dom, char *server)
{
struct ypbind_setdom ypsd;
struct timeval tv;
@@ -113,8 +111,7 @@ char *dom, *server;
}
int
-main(argc, argv)
-char **argv;
+main(int argc, char *argv[])
{
struct sockaddr_in sin;
struct hostent *hent;
OpenPOWER on IntegriCloud