summaryrefslogtreecommitdiffstats
path: root/src/secmgr-wrap.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-09 16:21:09 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-09 16:21:09 +0100
commit63f8720a3e610c0dc37bda3138d2e8de98ec1a78 (patch)
tree3842354238d7fca759cfb74cc95d7b497df41b78 /src/secmgr-wrap.c
parentec5ef9fdf2e608149c6ad308c5184820c51c39a6 (diff)
refactoring widget library
Change-Id: I9662573ed677d34daa393f0e207a4cd4a822f8ad Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/secmgr-wrap.c')
-rw-r--r--src/secmgr-wrap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/secmgr-wrap.c b/src/secmgr-wrap.c
index 1fcec58..f63ad29 100644
--- a/src/secmgr-wrap.c
+++ b/src/secmgr-wrap.c
@@ -1,8 +1,12 @@
+#include <string.h>
#include <errno.h>
+
#if 0
#include <security-manager.h>
#else
+#include <stdio.h>
+#include <stdint.h>
enum lib_retcode {
SECURITY_MANAGER_SUCCESS,
SECURITY_MANAGER_ERROR_INPUT_PARAM,
@@ -22,7 +26,7 @@ static int diese = 0;
(printf("security_manager_app_inst_req_free(%p)\n",r),(void)0)
#define security_manager_app_inst_req_new(pr) \
- (*(pr)=(void*)(++diese), printf("security_manager_app_inst_req_new(%p)\n",*pr), SECURITY_MANAGER_SUCCESS)
+ (*(pr)=(void*)(intptr_t)(++diese), printf("security_manager_app_inst_req_new(%p)\n",*pr), SECURITY_MANAGER_SUCCESS)
#define security_manager_app_inst_req_set_pkg_id(r,i) \
(printf("security_manager_app_inst_req_set_pkg_id(%p,\"%s\")\n",r,i), SECURITY_MANAGER_SUCCESS)