Print this page
10687 Service routine cast changes need smatch fixes
*** 19,29 ****
* CDDL HEADER END
*/
/*
* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
! * Copyright 2017 Joyent, Inc.
*/
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stream.h>
--- 19,29 ----
* CDDL HEADER END
*/
/*
* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
! * Copyright 2019, Joyent, Inc.
*/
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stream.h>
*** 3607,3617 ****
return (0);
}
while ((mp = getq(q)) != NULL) {
if (ipsec_loaded(ipss)) {
! spdsock_wput(q, mp);
if (ss->spdsock_dump_req != NULL)
return (0);
} else if (!ipsec_failed(ipss)) {
(void) putq(q, mp);
} else {
--- 3607,3617 ----
return (0);
}
while ((mp = getq(q)) != NULL) {
if (ipsec_loaded(ipss)) {
! (void) spdsock_wput(q, mp);
if (ss->spdsock_dump_req != NULL)
return (0);
} else if (!ipsec_failed(ipss)) {
(void) putq(q, mp);
} else {