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>2018-12-13 14:12:02 +0100
commit3bbb6b8e4647223d46d5ce436bbca4a526798d17 (patch)
tree20a6db8e2a6ac26f7cd550034744a8562adb5de4
parent6ddfe0a6177d3ab9103edeb4508e46ffb57a4b37 (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