Deleted Added
full compact
yp_dbupdate.c (50479) yp_dbupdate.c (79452)
1/*
2 * Copyright (c) 1996
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#ifndef lint
34static const char rcsid[] =
1/*
2 * Copyright (c) 1996
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#ifndef lint
34static const char rcsid[] =
35 "$FreeBSD: head/usr.sbin/rpc.ypupdated/yp_dbupdate.c 50479 1999-08-28 01:35:59Z peter $";
35 "$FreeBSD: head/usr.sbin/rpc.ypupdated/yp_dbupdate.c 79452 2001-07-09 09:24:06Z brian $";
36#endif /* not lint */
37
38#include <sys/fcntl.h>
39
40#include <stdio.h>
41#include <string.h>
42#include <errno.h>
43#include <limits.h>

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

52static int yp_domake(map, domain)
53 char *map;
54 char *domain;
55{
56 int pid;
57
58 switch((pid = fork())) {
59 case 0:
36#endif /* not lint */
37
38#include <sys/fcntl.h>
39
40#include <stdio.h>
41#include <string.h>
42#include <errno.h>
43#include <limits.h>

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

52static int yp_domake(map, domain)
53 char *map;
54 char *domain;
55{
56 int pid;
57
58 switch((pid = fork())) {
59 case 0:
60 execlp(MAP_UPDATE_PATH, MAP_UPDATE, map, domain, NULL);
60 execlp(MAP_UPDATE_PATH, MAP_UPDATE, map, domain, (char *)NULL);
61 yp_error("couldn't exec map update process: %s",
62 strerror(errno));
63 exit(1);
64 break;
65 case -1:
66 yp_error("fork() failed: %s", strerror(errno));
67 return(YPERR_YPERR);
68 break;

--- 86 unchanged lines hidden ---
61 yp_error("couldn't exec map update process: %s",
62 strerror(errno));
63 exit(1);
64 break;
65 case -1:
66 yp_error("fork() failed: %s", strerror(errno));
67 return(YPERR_YPERR);
68 break;

--- 86 unchanged lines hidden ---