From: Andrew Deason Date: Wed, 7 Oct 2009 22:14:08 +0000 (-0500) Subject: xdrproc_t functions take a caddr_t, not caddr_t* X-Git-Tag: openafs-devel-1_5_66~103 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=38ffa111190548f2648f15dd7f1d3469c7f96e08;p=packages%2Fo%2Fopenafs.git xdrproc_t functions take a caddr_t, not caddr_t* Callers of xdrproc_t functions give the function a foo* as the second argument, not a foo**, and the xdrproc_t functions themselves expect this. Make the xdrproc_t typedef accurately reflect that, thereby ridding us of some warnings. Reviewed-on: http://gerrit.openafs.org/603 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- diff --git a/src/rx/xdr.h b/src/rx/xdr.h index 8809d2259..858a0b25a 100644 --- a/src/rx/xdr.h +++ b/src/rx/xdr.h @@ -178,7 +178,7 @@ enum xdr_op { typedef bool_t(*xdrproc_t) (); #else #ifdef AFS_I386_LINUX26_ENV -typedef bool_t(*xdrproc_t) (void *, caddr_t *, u_int); +typedef bool_t(*xdrproc_t) (void *, caddr_t, u_int); #else typedef bool_t(*xdrproc_t) (void *, ...); #endif