diff options
Diffstat (limited to 'sys-apps/tomoyo-tools/files')
-rw-r--r-- | sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch b/sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch new file mode 100644 index 000000000000..8201093bbecb --- /dev/null +++ b/sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch @@ -0,0 +1,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; |