aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-05-15 14:32:33 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commitf0bd76620a9325ef92db5d97fd7b477a8d2aa010 (patch)
tree238874e504563d14d8a9cc627c28df5ec386009a
parentdfcc54a08a01ed34107e13ef2809e06f89d651f5 (diff)
Fixed spelling
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--filescan-utils.c4
-rw-r--r--filescan-utils.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/filescan-utils.c b/filescan-utils.c
index 8a155cf..a15a69b 100644
--- a/filescan-utils.c
+++ b/filescan-utils.c
@@ -100,7 +100,7 @@ json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const
return (responseJ);
}
-const char *GetMidleName(const char*name) {
+const char *GetMiddleName(const char*name) {
char *fullname = strdup(name);
for (int idx = 0; fullname[idx] != '\0'; idx++) {
@@ -129,7 +129,7 @@ const char *GetBinderName() {
static char psName[17];
// retrieve binder name from process name afb-name-trailer
prctl(PR_GET_NAME, psName,NULL,NULL,NULL);
- binderName=(char*)GetMidleName(psName);
+ binderName=(char*)GetMiddleName(psName);
}
return binderName;
diff --git a/filescan-utils.h b/filescan-utils.h
index fc3a6a7..1ed31a3 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -59,7 +59,7 @@ typedef enum {
*
* @return const char*
*/
-const char *GetMidleName(const char *name);
+const char *GetMiddleName(const char *name);
/**
* @brief Get the Binder Name without the prefix set by the AGL appfw 'afbd-'