- Fix wrong type for unsigned int
- Fix warning for test code
Change-Id: I649003f4d9ffcee1f54382e1fb196bdfd54791b3
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
event_name = event_name.substr(0, it);
auto len = event_name.length();
if (len <= 1 || len > 128) {
- _E("invalid length(%ld) of user-defined name", len);
+ _E("invalid length(%zu) of user-defined name", len);
return ES_R_EINVAL;
}
virtual void SetUp() {
info_ = reinterpret_cast<GDBusNodeInfo*>(malloc(sizeof(GDBusNodeInfo)));
- pc_ = reinterpret_cast<pkgmgr_client*>(malloc(sizeof(pkgmgr_client)));
+ pc_ = reinterpret_cast<pkgmgr_client*>(malloc(sizeof(pkgmgr_client*)));
EXPECT_CALL(GetMock<GioMock>(), g_dbus_node_info_new_for_xml(_, _))
.WillOnce(Return(info_));