aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-09 17:39:57 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-09-09 17:39:57 +0200
commitfdf2c27980f756cf63890576d80eef20b78fe980 (patch)
tree20a6db8e2a6ac26f7cd550034744a8562adb5de4
parent038de23bdf279d540218da8a03158ae59ac602c4 (diff)
Concatenate result directly from GetBindingDirPath
Return non const char pointer. Change-Id: I975b18f72d26c1a2749ca54e4f096271497047dd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--filescan-utils.c2
-rw-r--r--filescan-utils.h2
2 files changed, 2 insertions, 2 deletions
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