From: Romain Forlot Date: Wed, 30 Aug 2017 08:32:38 +0000 (+0200) Subject: Rename back define variable. X-Git-Tag: 6.99.3~61 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=4fce6e6c6e247af810118215b1238add9f6f61fb;p=src%2Flibafb-helpers.git Rename back define variable. Change-Id: Ie0d40f08230170ef780c46748889e153618d1c44 Signed-off-by: Romain Forlot --- diff --git a/filescan-utils.c b/filescan-utils.c index f1de9d0..3eb1b50 100644 --- a/filescan-utils.c +++ b/filescan-utils.c @@ -45,7 +45,7 @@ PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, // recursively search embedded directories ignoring any directory starting by '.' or '_' if (dirEnt->d_type == DT_DIR && mode == CTL_SCAN_RECURSIVE) { - char newpath[MAXPATH_LEN]; + char newpath[CONTROL_MAXPATH_LEN]; if (dirEnt->d_name[0]=='.' || dirEnt->d_name[0]=='_') continue; strncpy(newpath, searchPath, sizeof(newpath)); diff --git a/filescan-utils.h b/filescan-utils.h index e0c5da1..3c091b7 100644 --- a/filescan-utils.h +++ b/filescan-utils.h @@ -31,8 +31,8 @@ #endif #define STATIC static -#ifndef MAXPATH_LEN - #define MAXPATH_LEN 255 +#ifndef CONTROL_MAXPATH_LEN + #define CONTROL_MAXPATH_LEN 255 #endif // ctl-misc.c