summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-02-10 07:56:11 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-02-10 07:56:11 +0000
commit38af00e03bf8962b5e6f66858c39fa0150a59492 (patch)
tree3fe0a9e0b265002ac4e39896bc1c32b9b7daec1f
parent11bda782dc8a513bc316e2dccec1d7dedd600700 (diff)
Unbreak -h <hostname>; from FreeBSD. ok deraadt@
-rw-r--r--usr.sbin/ypset/ypset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypset/ypset.c b/usr.sbin/ypset/ypset.c
index b5fbd0c5dec..d0ba2ac6e67 100644
--- a/usr.sbin/ypset/ypset.c
+++ b/usr.sbin/ypset/ypset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypset.c,v 1.12 2003/07/18 22:58:56 david Exp $ */
+/* $OpenBSD: ypset.c,v 1.13 2004/02/10 07:56:10 otto Exp $ */
/* $NetBSD: ypset.c,v 1.8 1996/05/13 02:46:33 thorpej Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypset.c,v 1.12 2003/07/18 22:58:56 david Exp $";
+static char rcsid[] = "$OpenBSD: ypset.c,v 1.13 2004/02/10 07:56:10 otto Exp $";
#endif
#include <sys/param.h>
@@ -136,7 +136,7 @@ main(int argc, char *argv[])
optarg);
exit(1);
}
- bcopy(&hent->h_addr, &sin.sin_addr,
+ bcopy(hent->h_addr, &sin.sin_addr,
sizeof(sin.sin_addr));
}
break;