Fix build fail in aarch64 96/166396/1
authoryeji01.kim <yeji01.kim@samsung.com>
Wed, 10 Jan 2018 04:52:57 +0000 (13:52 +0900)
committeryeji01.kim <yeji01.kim@samsung.com>
Wed, 10 Jan 2018 04:52:57 +0000 (13:52 +0900)
Change-Id: I91ffc1e9de161cc660fab1e460b7161562bb0ad3
Signed-off-by: yeji01.kim <yeji01.kim@samsung.com>
lib/audit-trail/rule-management.cpp

index acecfa4ba03a2bad37e59ee0eb56fd925c5c2280..7a6317a87a57f04dddd87f80b8496a806f40b5fe 100644 (file)
@@ -88,7 +88,7 @@ int audit_rule_add_condition(audit_rule_h handle, unsigned int field,
        RET_ON_FAILURE(handle, AUDIT_TRAIL_ERROR_INVALID_PARAMETER);
 
        try {
-               GetAuditRule(handle).addCondition({field, op, (int)value});
+               GetAuditRule(handle).addCondition({field, op, (int)(intptr_t)value});
                return AUDIT_TRAIL_ERROR_NONE;
        } catch (std::exception &e) {}
 
@@ -106,7 +106,7 @@ int audit_rule_remove_condition(audit_rule_h handle, unsigned int field,
        RET_ON_FAILURE(handle, AUDIT_TRAIL_ERROR_INVALID_PARAMETER);
 
        try {
-               GetAuditRule(handle).addCondition({field, op, (int)value});
+               GetAuditRule(handle).addCondition({field, op, (int)(intptr_t)value});
                return AUDIT_TRAIL_ERROR_NONE;
        } catch (std::exception &e) {}
 
@@ -145,7 +145,7 @@ int audit_rule_foreach_condition(audit_rule_h handle,
 
        for (auto cond : intConds) {
                callback(cond.getField(), cond.getOperator(),
-                                       (void*)cond.getValue(), user_data);
+                                       (void*)(intptr_t)cond.getValue(), user_data);
        }
 
        for (auto cond : strConds) {