+2005-12-20 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * include/am_utils.h, conf/transp/transp_tli.c (amu_svc_register,
+ register_autofs_service): use a consistent prototype for the
+ dispatch function of the autofs service de/registration functions.
+
2005-12-03 Erez Zadok <ezk@cs.sunysb.edu>
* minor new ports: i386-unknown-netbsdelf2.1,
*/
int
amu_svc_register(SVCXPRT *xprt, u_long prognum, u_long versnum,
- void (*dispatch)(), u_long protocol, struct netconfig *ncp)
+ void (*dispatch)(struct svc_req *rqstp, SVCXPRT *xprt),
+ u_long protocol, struct netconfig *ncp)
{
/* on TLI: svc_reg returns 1 on success, 0 otherwise */
return svc_reg(xprt, prognum, versnum, dispatch, ncp);
* Register the autofs service for amd
*/
int
-register_autofs_service(char *autofs_conftype, void (*autofs_dispatch)())
+register_autofs_service(char *autofs_conftype,
+ void (*autofs_dispatch)(struct svc_req *rqstp, SVCXPRT *xprt))
{
struct t_bind *tbp = NULL;
struct netconfig *autofs_ncp;
extern struct netconfig *nfsncp;
extern void free_knetconfig(struct knetconfig *kncp);
+#endif /* HAVE_TRANSPORT_TYPE_TLI */
+
#ifdef HAVE_FS_AUTOFS
-extern int register_autofs_service(char *autofs_conftype, void (*autofs_dispatch)(struct svc_req *, SVCXPRT *));
+extern int register_autofs_service(char *autofs_conftype, void (*autofs_dispatch)(struct svc_req *rqstp, SVCXPRT *xprt));
extern int unregister_autofs_service(char *autofs_conftype);
#endif /* HAVE_FS_AUTOFS */
-#endif /* HAVE_TRANSPORT_TYPE_TLI */
#ifndef HAVE_STRUCT_FHSTATUS_FHS_FH
# define fhs_fh fhstatus_u.fhs_fhandle