Deleted Added
full compact
ypset.c (90298) ypset.c (95658)
1/*
2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef lint
31static const char rcsid[] =
1/*
2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef lint
31static const char rcsid[] =
32 "$FreeBSD: head/usr.sbin/ypset/ypset.c 90298 2002-02-06 15:26:07Z des $";
32 "$FreeBSD: head/usr.sbin/ypset/ypset.c 95658 2002-04-28 15:18:50Z des $";
33#endif /* not lint */
34
35#include <err.h>
36#include <netdb.h>
37#include <stdio.h>
38#include <string.h>
39#include <unistd.h>
40#include <sys/param.h>

--- 54 unchanged lines hidden (view full) ---

95 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
96 if (client == NULL) {
97 warnx("can't yp_bind, reason: %s", yperr_string(YPERR_YPBIND));
98 return (YPERR_YPBIND);
99 }
100 client->cl_auth = authunix_create_default();
101
102 r = clnt_call(client, YPBINDPROC_SETDOM,
33#endif /* not lint */
34
35#include <err.h>
36#include <netdb.h>
37#include <stdio.h>
38#include <string.h>
39#include <unistd.h>
40#include <sys/param.h>

--- 54 unchanged lines hidden (view full) ---

95 client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
96 if (client == NULL) {
97 warnx("can't yp_bind, reason: %s", yperr_string(YPERR_YPBIND));
98 return (YPERR_YPBIND);
99 }
100 client->cl_auth = authunix_create_default();
101
102 r = clnt_call(client, YPBINDPROC_SETDOM,
103 xdr_ypbind_setdom, &ypsd, xdr_void, NULL, tv);
103 (xdrproc_t)xdr_ypbind_setdom, &ypsd,
104 (xdrproc_t)xdr_void, NULL, tv);
104 if (r) {
105 warnx("sorry, cannot ypset for domain %s on host", dom);
106 clnt_destroy(client);
107 return (YPERR_YPBIND);
108 }
109 clnt_destroy(client);
110 return (0);
111}

--- 40 unchanged lines hidden ---
105 if (r) {
106 warnx("sorry, cannot ypset for domain %s on host", dom);
107 clnt_destroy(client);
108 return (YPERR_YPBIND);
109 }
110 clnt_destroy(client);
111 return (0);
112}

--- 40 unchanged lines hidden ---