* clnt.h: CLIENT cl_private structure element changed to type void *.
* svc.h: SVCXRPT elements xp_p1 and xp_p2 changed to void * from
caddr_t.
* svc_udp.c: su_cache element of svcudp_data from caddr_t to void *.
* clnt_tcp.c, svc_tcp.c (writetcp, readtcp): Cleanup alignment
warning in casts.
* types.hin (mem_alloc): Do not cast type of malloc to char *.
* xdr.h: Change type of x_private of XDR from caddr_t to void *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13620
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-19 Ezra Peisach <epeisach@mit.edu>
+
+ * auth.h: AUTH ah_private structure element changed to void *.
+
+ * clnt.h: CLIENT cl_private structure element changed to type void *.
+
+ * svc.h: SVCXRPT elements xp_p1 and xp_p2 changed to void * from
+ caddr_t.
+
+ * svc_udp.c: su_cache element of svcudp_data from caddr_t to void *.
+
+ * clnt_tcp.c, svc_tcp.c (writetcp, readtcp): Cleanup alignment
+ warning in casts.
+
+ * types.hin (mem_alloc): Do not cast type of malloc to char *.
+
+ * xdr.h: Change type of x_private of XDR from caddr_t to void *.
+
2001-07-09 Ezra Peisach <epeisach@mit.edu>
* pmap_rmt.c, svc.c, svc_simple.c, svc_udp.c, svc_tcp.c,
OTW transfer of gids.
* clnt_tcp.c, svc_tcp.c: Change writetcp and readtcp to take char
- * as first argument to be compatible with xdrrec_create.
+ as first argument to be compatible with xdrrec_create.
* xdr.c (xdr_opaque): Cast argument in call to XDR_GETBYTES.
int (*ah_unwrap)(struct __rpc_auth *, XDR *,
xdrproc_t, caddr_t);
} *ah_ops;
- caddr_t ah_private;
+ void *ah_private;
} AUTH;
bool_t (*cl_control)(struct __rpc_client *, int,
void *);
} *cl_ops;
- caddr_t cl_private; /* private stuff */
+ void *cl_private; /* private stuff */
} CLIENT;
caddr_t buf;
register int len;
{
- register struct ct_data *ct = (struct ct_data *)ctptr;
+ register struct ct_data *ct = (struct ct_data *)(void *)ctptr;
#ifdef FD_SETSIZE
fd_set mask;
fd_set readfds;
caddr_t buf;
int len;
{
- struct ct_data *ct = (struct ct_data *)ctptr;
+ struct ct_data *ct = (struct ct_data *)(void *)ctptr;
register int i, cnt;
for (cnt = len; cnt > 0; cnt -= i, buf += i) {
struct sockaddr_in xp_raddr; /* remote address */
struct opaque_auth xp_verf; /* raw response verifier */
SVCAUTH *xp_auth; /* auth flavor of current req */
- caddr_t xp_p1; /* private */
- caddr_t xp_p2; /* private */
+ void *xp_p1; /* private */
+ void *xp_p2; /* private */
int xp_laddrlen; /* lenght of local address */
struct sockaddr_in xp_laddr; /* local address */
} SVCXPRT;
int (*svc_ah_unwrap)(struct __rpc_svc_auth *, XDR *, xdrproc_t,
caddr_t);
} *svc_ah_ops;
- caddr_t svc_ah_private;
+ void * svc_ah_private;
} SVCAUTH;
extern SVCAUTH svc_auth_any;
caddr_t buf;
register int len;
{
- register SVCXPRT *xprt = (SVCXPRT *) xprtptr;
+ register SVCXPRT *xprt = (SVCXPRT *)(void *)xprtptr;
register int sock = xprt->xp_sock;
#ifdef FD_SETSIZE
fd_set mask;
caddr_t buf;
int len;
{
- register SVCXPRT *xprt = (SVCXPRT *) xprtptr;
+ register SVCXPRT *xprt = (SVCXPRT *)(void *) xprtptr;
register int i, cnt;
for (cnt = len; cnt > 0; cnt -= i, buf += i) {
rpc_u_int32 su_xid; /* transaction id */
XDR su_xdrs; /* XDR handle */
char su_verfbody[MAX_AUTH_BYTES]; /* verifier body */
- char * su_cache; /* cached data, NULL if no cache */
+ void * su_cache; /* cached data, NULL if no cache */
};
#define su_data(xprt) ((struct svcudp_data *)(xprt->xp_p2))
#endif
@STDLIB_INCLUDE@
-#define mem_alloc(bsize) (char *) malloc(bsize)
+#define mem_alloc(bsize) malloc(bsize)
#define mem_free(ptr, bsize) free(ptr)
#ifndef makedev /* ie, we haven't already included it */
void (*x_destroy)(struct __xdr_s *);
} *x_ops;
caddr_t x_public; /* users' data */
- caddr_t x_private; /* pointer to private data */
+ void * x_private; /* pointer to private data */
caddr_t x_base; /* private used for position info */
int x_handy; /* extra private word */
} XDR;