]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix pointer type incompatibilities
authorTed Lemon <source@isc.org>
Thu, 16 May 1996 23:56:03 +0000 (23:56 +0000)
committerTed Lemon <source@isc.org>
Thu, 16 May 1996 23:56:03 +0000 (23:56 +0000)
common/raw.c
raw.c

index 99187e12452c91f1db4f192e3ae10b0e2f245842..03458ac92ef32c0397c294c7397789c0d5ba6446 100644 (file)
@@ -121,9 +121,9 @@ size_t send_packet (interface, packet, raw, len, to, hto)
                                (unsigned char *)raw, len);
 
        /* Fire it off */
-       iov [0].iov_base = buf;
+       iov [0].iov_base = (char *)buf;
        iov [0].iov_len = bufp;
-       iov [1].iov_base = (unsigned char *)raw;
+       iov [1].iov_base = (char *)raw;
        iov [1].iov_len = len;
 
        return writev(interface -> wfdesc, iov, 2);
diff --git a/raw.c b/raw.c
index 99187e12452c91f1db4f192e3ae10b0e2f245842..03458ac92ef32c0397c294c7397789c0d5ba6446 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -121,9 +121,9 @@ size_t send_packet (interface, packet, raw, len, to, hto)
                                (unsigned char *)raw, len);
 
        /* Fire it off */
-       iov [0].iov_base = buf;
+       iov [0].iov_base = (char *)buf;
        iov [0].iov_len = bufp;
-       iov [1].iov_base = (unsigned char *)raw;
+       iov [1].iov_base = (char *)raw;
        iov [1].iov_len = len;
 
        return writev(interface -> wfdesc, iov, 2);