Skip to content

Commit

Permalink
10494 rds: cast between incompatible function types
Browse files Browse the repository at this point in the history
Reviewed by: Gergő Doma <domag02@gmail.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
tsoome committed Mar 11, 2019
1 parent 36ac8d7 commit 22d021d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions usr/src/uts/common/io/ib/clients/rds/rdsddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ rds_wrw(queue_t *q, struiod_t *dp)
return (error);
}

static void
static int
rds_rsrv(queue_t *q)
{
rds_t *rds = (rds_t *)q->q_ptr;
Expand All @@ -884,6 +884,7 @@ rds_rsrv(queue_t *q)

/* No more messages in the q, unstall the socket */
rds_transport_ops->rds_transport_resume_port(ntohs(rds->rds_port));
return (0);
}

int
Expand Down Expand Up @@ -949,11 +950,11 @@ static struct module_info info = {
};

static struct qinit rinit = {
NULL, (pfi_t)rds_rsrv, rds_open, rds_close, NULL, &info
NULL, rds_rsrv, rds_open, rds_close, NULL, &info
};

static struct qinit winit = {
(pfi_t)rds_wput, NULL, rds_open, rds_close, NULL, &info,
rds_wput, NULL, rds_open, rds_close, NULL, &info,
NULL, rds_wrw, NULL, STRUIOT_STANDARD
};

Expand Down

0 comments on commit 22d021d

Please sign in to comment.