Fixing warnings in wrt-installer repository
authorKamil <k.nowac@partner.samsung.com>
Thu, 25 Apr 2013 11:12:22 +0000 (13:12 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Thu, 2 May 2013 14:24:54 +0000 (16:24 +0200)
[Issue#] LINUXWRT-271
[Problem] Too many warnings
[Cause] N/A
[Solution] Preventing them
[Verification] Build wrt-installer repository

Change-Id: Ibd41be4dd3546dad6fdfa3eda65e44973f43f1d8

src/jobs/widget_install/task_smack.cpp
src/pkg-manager/backendlib.cpp

index e6db95a..9857bf7 100644 (file)
@@ -35,7 +35,9 @@
 
 namespace {
 const int MAX_BUF_SIZE = 128;
+#ifdef WRT_SMACK_ENABLED
 const char* SMACK_RULE_STR = "/usr/bin/smackload-app.sh";
+#endif
 }
 
 namespace Jobs {
index bdda87d..3786026 100644 (file)
@@ -464,7 +464,7 @@ pkgmgr_info *pkgmgr_client_check_pkginfo_from_file(const char *pkg_path)
         LogError("Failed to get package detail info ");
         return NULL;
     }
-    return &pkg_detail_info;
+    return reinterpret_cast<pkgmgr_info*>(pkg_detail_info);
 }
 
 __attribute__ ((visibility("default")))