diff options
author | Toomas Soome <tsoome@me.com> | 2018-10-21 10:10:48 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-09-18 18:33:38 +0300 |
commit | 203710accc1c9daa504cfe30bd32ec3e3ef13090 (patch) | |
tree | c0b5233c9cd96fe2c7514cdd73387d8aabe90016 | |
parent | 262af05a990afe4ad4e40b9e3ec56bfe56b80db5 (diff) | |
download | illumos-joyent-203710accc1c9daa504cfe30bd32ec3e3ef13090.tar.gz |
11600 redirmod: cast between incompatible function types
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/strredirm.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/strredirm.c b/usr/src/uts/common/io/strredirm.c index a6cf5f9522..31a488b2d5 100644 --- a/usr/src/uts/common/io/strredirm.c +++ b/usr/src/uts/common/io/strredirm.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Redirection STREAMS module. * @@ -56,6 +54,7 @@ static int wcmopen(queue_t *, dev_t *, int, int, cred_t *); static int wcmclose(queue_t *, int, cred_t *); static int wcmrput(queue_t *, mblk_t *); +static int wcmwput(queue_t *, mblk_t *); static struct module_info wcminfo = { STRREDIR_MODID, @@ -77,7 +76,7 @@ static struct qinit wcmrinit = { }; static struct qinit wcmwinit = { - (int (*)())putnext, /* put */ + wcmwput, /* put */ NULL, /* service */ wcmopen, /* open */ wcmclose, /* close */ @@ -159,3 +158,10 @@ wcmrput(queue_t *q, mblk_t *mp) putnext(q, mp); return (0); } + +static int +wcmwput(queue_t *q, mblk_t *mp) +{ + putnext(q, mp); + return (0); +} |