You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
814 B
23 lines
814 B
diff --git a/usr_sbin/editpolicy_offline.c b/usr_sbin/editpolicy_offline.c
|
|
index dbbd11e..e699cf4 100644
|
|
--- a/usr_sbin/editpolicy_offline.c
|
|
+++ b/usr_sbin/editpolicy_offline.c
|
|
@@ -2882,7 +2882,7 @@ static bool ccs_parse_ipaddr_union(struct ccs_acl_param *param,
|
|
struct ccs_ipaddr_union *ptr)
|
|
{
|
|
struct ccs_ip_address_entry e;
|
|
- memset(ptr, 0, sizeof(ptr));
|
|
+ memset(ptr, 0, sizeof(*ptr));
|
|
if (ccs_parse_ip(ccs_read_token(param), &e) == 0) {
|
|
memmove(&ptr->ip[0], e.min, sizeof(ptr->ip[0]));
|
|
memmove(&ptr->ip[1], e.max, sizeof(ptr->ip[1]));
|
|
@@ -4745,7 +4745,7 @@ static void ccs_write_control(char *buffer, const size_t buffer_len)
|
|
*
|
|
* Returns nothing.
|
|
*/
|
|
-static void ccs_editpolicy_offline_init(coid)
|
|
+static void ccs_editpolicy_offline_init(void)
|
|
{
|
|
static _Bool first = true;
|
|
int i;
|