2005-05-27 Erez Zadok <ezk@cs.sunysb.edu>
+ * conf/checkmount/checkmount_osf.c (fixmount_check_mount): add
+ extra parentheses around assignments as "if" expressions (gcc
+ complains).
+
+ * conf/nfs_prot/nfs_prot_osf4.h: add missing extern definitions
+ for plock, hstrerror, getmntinfo, alloca, xdr_exportnode, and
+ xdr_groups.
+
* configure.in: check for <linux/socket.h>, which, if found,
appears to be preferable to <sys/socket.h>. Use it to find
<linux/nfs_mount.h>. On some Linux systems
* SUCH DAMAGE.
*
*
- * $Id: checkmount_osf.c,v 1.9 2005/01/03 20:56:45 ezk Exp $
+ * $Id: checkmount_osf.c,v 1.10 2005/05/28 17:34:10 ezk Exp $
*
*/
* Apparently two forms of nfs mount syntax are
* accepted: host:/path or /path@host
*/
- if (delim = strchr(fslist[i].f_mntfromname, ':')) {
+ if ((delim = strchr(fslist[i].f_mntfromname, ':'))) {
*delim = '\0';
if ((STREQ(delim + 1, path) ||
STREQ(fslist[i].f_mntonname, path)) &&
is_same_host(fslist[i].f_mntfromname,
host, hostaddr))
found = 1;
- } else if (delim = strchr(fslist[i].f_mntfromname, '@')) {
+ } else if ((delim = strchr(fslist[i].f_mntfromname, '@'))) {
*delim = '\0';
if ((STREQ(fslist[i].f_mntfromname, path) ||
STREQ(fslist[i].f_mntonname, path)) &&
* SUCH DAMAGE.
*
*
- * $Id: nfs_prot_osf4.h,v 1.10 2005/01/03 20:56:45 ezk Exp $
+ * $Id: nfs_prot_osf4.h,v 1.11 2005/05/28 17:34:10 ezk Exp $
*
*/
/*
- * EXTERNALS:
+ * EXTERNALS: (some are missing from system headers)
*/
extern void *nfsproc_null_2_svc(void *, struct svc_req *);
extern nfsstat *nfsproc_rmdir_2_svc(nfsdiropargs *, struct svc_req *);
extern nfsreaddirres *nfsproc_readdir_2_svc(nfsreaddirargs *, struct svc_req *);
extern nfsstatfsres *nfsproc_statfs_2_svc(struct nfssvcfh *, struct svc_req *);
+extern int plock(int op);
+extern const char *hstrerror(int err);
+extern int getmntinfo(struct statfs **mntbufp, int flags);
extern bool_t xdr_nfsstat(XDR *, nfsstat*);
extern bool_t xdr_ftype(XDR *, nfsftype*);
extern bool_t xdr_readdirres(XDR *, nfsreaddirres*);
extern bool_t xdr_statfsokres(XDR *, nfsstatfsokres*);
extern bool_t xdr_statfsres(XDR *, nfsstatfsres*);
+extern bool_t xdr_exportnode (XDR *, exportnode*);
+extern bool_t xdr_groups (XDR *, groups*);
+
/*