summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-04-30 05:50:18 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-04-30 05:50:18 +0000
commitbc4562b97b0c5137d380b53bb53d3df521bd2557 (patch)
tree3ed1d4060dbe481a9728059101fb5bb593adea26 /lib/libc
parentce968e8da552bcdef5eb19f76aabbba50035d617 (diff)
Don't do pointer arithmetic on void pointers
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/svc_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c
index fd3e09749f9..75380fb16f6 100644
--- a/lib/libc/rpc/svc_tcp.c
+++ b/lib/libc/rpc/svc_tcp.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc_tcp.c,v 1.13 1997/03/29 06:09:58 deraadt Exp $";
+static char *rcsid = "$OpenBSD: svc_tcp.c,v 1.14 1997/04/30 05:50:17 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -259,7 +259,7 @@ rendezvous_request(xprt)
if (!getsockopt(sock, IPPROTO_IP, IP_OPTIONS, (char *)&opts,
&optsize) && optsize != 0) {
- for (i = 0; (void *)&opts.ipopt_list[i] - (void *)&opts <
+ for (i = 0; (char *)&opts.ipopt_list[i] - (char *)&opts <
optsize; ) {
u_char c = (u_char)opts.ipopt_list[i];
if (c == IPOPT_LSRR || c == IPOPT_SSRR) {