1 |
naota 13/02/28 14:46:54 |
2 |
|
3 |
Added: ccs-tools-1.8.3_p20130214-warnings.patch |
4 |
Log: |
5 |
Add minor fix patch |
6 |
|
7 |
(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key F8551514) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: ccs-tools-1.8.3_p20130214-warnings.patch |
16 |
=================================================================== |
17 |
diff --git a/usr_sbin/editpolicy_offline.c b/usr_sbin/editpolicy_offline.c |
18 |
index dbbd11e..e699cf4 100644 |
19 |
--- a/usr_sbin/editpolicy_offline.c |
20 |
+++ b/usr_sbin/editpolicy_offline.c |
21 |
@@ -2882,7 +2882,7 @@ static bool ccs_parse_ipaddr_union(struct ccs_acl_param *param, |
22 |
struct ccs_ipaddr_union *ptr) |
23 |
{ |
24 |
struct ccs_ip_address_entry e; |
25 |
- memset(ptr, 0, sizeof(ptr)); |
26 |
+ memset(ptr, 0, sizeof(*ptr)); |
27 |
if (ccs_parse_ip(ccs_read_token(param), &e) == 0) { |
28 |
memmove(&ptr->ip[0], e.min, sizeof(ptr->ip[0])); |
29 |
memmove(&ptr->ip[1], e.max, sizeof(ptr->ip[1])); |
30 |
@@ -4745,7 +4745,7 @@ static void ccs_write_control(char *buffer, const size_t buffer_len) |
31 |
* |
32 |
* Returns nothing. |
33 |
*/ |
34 |
-static void ccs_editpolicy_offline_init(coid) |
35 |
+static void ccs_editpolicy_offline_init(void) |
36 |
{ |
37 |
static _Bool first = true; |
38 |
int i; |