diff options
| author | th160488 <none@none> | 2005-10-17 13:39:33 -0700 |
|---|---|---|
| committer | th160488 <none@none> | 2005-10-17 13:39:33 -0700 |
| commit | a506a34ceb0e9dcc6c61bf0560202f8538928650 (patch) | |
| tree | e903f719dd06f99888c99d164427a15567dc035b /usr/src/cmd/ypcmd/ypxfrd_client.c | |
| parent | a66ba7b33369c7bd064dcae0e279fd236eee6dbf (diff) | |
| download | illumos-joyent-a506a34ceb0e9dcc6c61bf0560202f8538928650.tar.gz | |
6267517 gcc/g++ and cmd/ldap don't get along
6269029 cmd/ypcmd and gcc don't get along
6271235 gcc and cmd/ldapcachemgr don't get along
6274678 gcc and libnisdb don't get along
Diffstat (limited to 'usr/src/cmd/ypcmd/ypxfrd_client.c')
| -rw-r--r-- | usr/src/cmd/ypcmd/ypxfrd_client.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/src/cmd/ypcmd/ypxfrd_client.c b/usr/src/cmd/ypcmd/ypxfrd_client.c index 0bbc917ba6..0d1f707f3e 100644 --- a/usr/src/cmd/ypcmd/ypxfrd_client.c +++ b/usr/src/cmd/ypcmd/ypxfrd_client.c @@ -20,8 +20,8 @@ * CDDL HEADER END */ /* - * Copyright (c) 1986-1999 by Sun Microsystems, Inc. - * All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ #pragma ident "%Z%%M% %I% %E% SMI" @@ -50,7 +50,7 @@ static DBM *db; extern bool secure_map; /* delete the dbm file with name file */ -static +static int dbm_deletefile(file) char *file; { @@ -173,6 +173,7 @@ xdr_dirs(xdrs, objp) * we may not use this optional protocol */ +int xdr_myfyl(xdrs, objp) XDR *xdrs; int *objp; @@ -192,6 +193,7 @@ xdr_myfyl(xdrs, objp) return (TRUE); } +int ypxfrd_getdbm(tempmap, master, domain, map) char *tempmap; char *master; @@ -275,7 +277,7 @@ ypxfrd_getdbm(tempmap, master, domain, map) rmap.map = map; rmap.domain = domain; - memset((char *) &res, 0, sizeof (res)); + memset((char *)&res, 0, sizeof (res)); db = dbm_open(tempmap, O_RDWR + O_CREAT + O_TRUNC, 0777); if (db == NULL) { logprintf("dbm_open failed %s\n", tempmap); |
