yp_passwd.c (81586) | yp_passwd.c (84220) |
---|---|
1/* 2 * Copyright (c) 1995, 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 --- 16 unchanged lines hidden (view full) --- 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 | 1/* 2 * Copyright (c) 1995, 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 --- 16 unchanged lines hidden (view full) --- 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 |
33#include <sys/cdefs.h> 34__FBSDID("$FreeBSD: head/lib/librpcsvc/yp_passwd.c 84220 2001-09-30 22:15:15Z dillon $"); 35 |
|
33#include <stdlib.h> 34#include <rpc/rpc.h> 35#include <rpcsvc/yp_prot.h> 36#include <rpcsvc/ypclnt.h> 37#include <rpcsvc/yppasswd.h> 38#include <netinet/in.h> 39 | 36#include <stdlib.h> 37#include <rpc/rpc.h> 38#include <rpcsvc/yp_prot.h> 39#include <rpcsvc/ypclnt.h> 40#include <rpcsvc/yppasswd.h> 41#include <netinet/in.h> 42 |
40#ifndef lint 41static const char rcsid[] = 42 "$FreeBSD: head/lib/librpcsvc/yp_passwd.c 81586 2001-08-13 14:06:34Z ru $"; 43#endif /* not lint */ 44 | |
45/* 46 * XXX <rpcsvc/yppasswd.h> does a typedef that makes 'yppasswd' 47 * a type of struct yppasswd. This leads to a namespace collision: 48 * gcc will not let you have a type called yppasswd and a function 49 * called yppasswd(). In order to get around this, we call the 50 * actual function _yppasswd() and put a macro called yppasswd() 51 * in yppasswd.h which calls the underlying function, thereby 52 * fooling gcc. --- 37 unchanged lines hidden --- | 43/* 44 * XXX <rpcsvc/yppasswd.h> does a typedef that makes 'yppasswd' 45 * a type of struct yppasswd. This leads to a namespace collision: 46 * gcc will not let you have a type called yppasswd and a function 47 * called yppasswd(). In order to get around this, we call the 48 * actual function _yppasswd() and put a macro called yppasswd() 49 * in yppasswd.h which calls the underlying function, thereby 50 * fooling gcc. --- 37 unchanged lines hidden --- |