s4:lib/tls/tls_tstream.c - quiet warning on Solaris "cc" by casts
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 29 Nov 2010 13:35:19 +0000 (14:35 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 29 Nov 2010 13:48:13 +0000 (14:48 +0100)
source4/lib/tls/tls_tstream.c

index 7f37643a659d29468ea08df8581439427c1c4f94..8e80454d57a8f59e6226e71bd6194d8bb77665f3 100644 (file)
@@ -460,7 +460,7 @@ static void tstream_tls_readv_crypt_next(struct tevent_req *req)
                memcpy(base, tlss->read.buffer + tlss->read.ofs, len);
 
                base += len;
-               state->vector[0].iov_base = base;
+               state->vector[0].iov_base = (char *) base;
                state->vector[0].iov_len -= len;
 
                tlss->read.ofs += len;
@@ -631,7 +631,7 @@ static void tstream_tls_writev_crypt_next(struct tevent_req *req)
                memcpy(tlss->write.buffer + tlss->write.ofs, base, len);
 
                base += len;
-               state->vector[0].iov_base = base;
+               state->vector[0].iov_base = (char *) base;
                state->vector[0].iov_len -= len;
 
                tlss->write.ofs += len;