From: Romain Forlot Date: Sat, 9 Sep 2017 15:39:57 +0000 (+0200) Subject: Concatenate result directly from GetBindingDirPath X-Git-Tag: 4.99.3~4 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=fdf2c27980f756cf63890576d80eef20b78fe980;p=apps%2Fapp-afb-helpers-submodule.git Concatenate result directly from GetBindingDirPath Return non const char pointer. Change-Id: I975b18f72d26c1a2749ca54e4f096271497047dd Signed-off-by: Romain Forlot --- diff --git a/filescan-utils.c b/filescan-utils.c index 2ac67fd..a36969b 100644 --- a/filescan-utils.c +++ b/filescan-utils.c @@ -123,7 +123,7 @@ PUBLIC const char *GetBinderName() { return binderName; } -PUBLIC const char *GetBindingDirPath() +PUBLIC char *GetBindingDirPath() { // A file description should not be greater than 999.999.999 char fd_link[CONTROL_MAXPATH_LEN]; diff --git a/filescan-utils.h b/filescan-utils.h index 68df0fc..e17867e 100644 --- a/filescan-utils.h +++ b/filescan-utils.h @@ -47,7 +47,7 @@ typedef enum { PUBLIC const char *GetMidleName(const char*name); PUBLIC const char *GetBinderName(); PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext); -PUBLIC const char *GetBindingDirPath(); +PUBLIC char *GetBindingDirPath(); #ifdef __cplusplus