summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-10-21 22:08:57 +0300
committerToomas Soome <tsoome@me.com>2019-10-11 20:55:54 +0300
commiteb09fcf8417871597746d29fbfa39665d2623d5a (patch)
treec32a870bfe7741054e12b7dda0ec1977a593e3cd
parentca19b8572adc4c6a3d44d243844ef95865864bf7 (diff)
downloadillumos-joyent-eb09fcf8417871597746d29fbfa39665d2623d5a.tar.gz
11789 gld: cast between incompatible function types
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Garrett D'Amore <gdamore@damore.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/io/gld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/gld.c b/usr/src/uts/common/io/gld.c
index c6c6b65900..f9e8fdd19f 100644
--- a/usr/src/uts/common/io/gld.c
+++ b/usr/src/uts/common/io/gld.c
@@ -2901,10 +2901,10 @@ gld_sendup(gld_mac_info_t *macinfo, pktinfo_t *pktinfo,
* device might need this, so it's here but undocumented.
*/
if (macinfo->gldm_options & GLDOPT_FAST_RECV) {
- send = (void (*)(queue_t *, mblk_t *))putq;
+ send = (void (*)(queue_t *, mblk_t *))(uintptr_t)putq;
cansend = canput;
} else {
- send = (void (*)(queue_t *, mblk_t *))putnext;
+ send = putnext;
cansend = canputnext;
}