summaryrefslogtreecommitdiff
blob: 8201093bbecb87fdda14ecc035ef4de829319e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;