Print this page
10133 smatch fixes for usr/src/cmd/fs.d
*** 22,31 ****
--- 22,35 ----
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+ /*
* Reparsed daemon
*/
#include <stdio.h>
#include <stdio_ext.h>
*** 189,202 ****
reparsed_door_res_t rpd_res;
memset(&rpd_res, 0, sizeof (reparsed_door_res_t));
rpd_res.res_status = error;
rpd_res.res_len = buflen;
! door_return((char *)&rpd_res, sizeof (reparsed_door_res_t), NULL, 0);
(void) door_return(NULL, 0, NULL, 0);
! /* NOTREACHED */
}
/*
* reparsed_doorfunc
*
--- 193,207 ----
reparsed_door_res_t rpd_res;
memset(&rpd_res, 0, sizeof (reparsed_door_res_t));
rpd_res.res_status = error;
rpd_res.res_len = buflen;
! (void) door_return((char *)&rpd_res,
! sizeof (reparsed_door_res_t), NULL, 0);
(void) door_return(NULL, 0, NULL, 0);
! abort();
}
/*
* reparsed_doorfunc
*