Deleted Added
full compact
ypxfr_misc.c (15671) ypxfr_misc.c (16132)
1/*
2 * Copyright (c) 1995
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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 *
1/*
2 * Copyright (c) 1995
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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 * $Id: ypxfr_misc.c,v 1.2 1996/02/04 05:18:44 wpaul Exp $
32 * $Id: ypxfr_misc.c,v 1.8 1996/06/02 05:12:00 wpaul Exp $
33 */
34#include <stdlib.h>
35#include <unistd.h>
36#include <sys/param.h>
37#include <rpc/rpc.h>
38#include <rpcsvc/yp.h>
39struct dom_binding {};
40#include <rpcsvc/ypclnt.h>
41#include "ypxfr_extern.h"
42
43#ifndef lint
33 */
34#include <stdlib.h>
35#include <unistd.h>
36#include <sys/param.h>
37#include <rpc/rpc.h>
38#include <rpcsvc/yp.h>
39struct dom_binding {};
40#include <rpcsvc/ypclnt.h>
41#include "ypxfr_extern.h"
42
43#ifndef lint
44static const char rcsid[] = "$Id: ypxfr_misc.c,v 1.2 1996/02/04 05:18:44 wpaul Exp $";
44static const char rcsid[] = "$Id: ypxfr_misc.c,v 1.8 1996/06/02 05:12:00 wpaul Exp $";
45#endif
46
47char *ypxfrerr_string(code)
48 ypxfrstat code;
49{
50 switch(code) {
51 case YPXFR_SUCC:
52 return ("Map successfully transfered");

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

183 case YP_YPERR:
184 default:
185 yp_errno = YPXFR_YPERR;
186 break;
187 }
188 return(NULL);
189 }
190 snprintf(mastername, sizeof(mastername), "%s", resp->peer);
45#endif
46
47char *ypxfrerr_string(code)
48 ypxfrstat code;
49{
50 switch(code) {
51 case YPXFR_SUCC:
52 return ("Map successfully transfered");

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

183 case YP_YPERR:
184 default:
185 yp_errno = YPXFR_YPERR;
186 break;
187 }
188 return(NULL);
189 }
190 snprintf(mastername, sizeof(mastername), "%s", resp->peer);
191/* xdr_free(xdr_ypresp_master, (char *)&resp); */
191/* xdr_free(xdr_ypresp_master, (char *)&resp); */
192 return((char *)&mastername);
193 }
194}
195
196unsigned long ypxfr_get_order(domain, map, source, yplib)
197 char *domain;
198 char *map;
199 char *source;

--- 60 unchanged lines hidden ---
192 return((char *)&mastername);
193 }
194}
195
196unsigned long ypxfr_get_order(domain, map, source, yplib)
197 char *domain;
198 char *map;
199 char *source;

--- 60 unchanged lines hidden ---