diff options
author | Patrick Georgi <pgeorgi@google.com> | 2018-05-16 17:20:28 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-18 10:05:13 -0700 |
commit | 880bb8b21291f14a368038287b892ad3224bbae6 (patch) | |
tree | 8d720a40f073ab0720506ee03dc0b2f7eaed94ec /util/ecst.h | |
parent | 85ddb2ce533cb0276aab7780238ec98e1abec2fe (diff) | |
download | chrome-ec-880bb8b21291f14a368038287b892ad3224bbae6.tar.gz |
util/ecst: refactor path mangling
ecst has two open-coded implementations of a function to inject a string
into another string (that happens to be a path). Factor out and make
sure that gcc 8.1's static analysis of string lengths is happy.
BUG=b:65441143
BRANCH=none
TEST=builds with gcc 8.1
Change-Id: I80581d26b6f75cac2c9530c18f94d12614aa1586
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1061878
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Diffstat (limited to 'util/ecst.h')
-rwxr-xr-x | util/ecst.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/util/ecst.h b/util/ecst.h index 4bbac5f2ce..aac9991d0e 100755 --- a/util/ecst.h +++ b/util/ecst.h @@ -106,8 +106,6 @@ #define ECRP_INPUT_FILE 0x02 #define ECRP_OUTPUT_FILE 0x04 -#define DIR_DELIMITER_STR "/" - #define SPI_MAX_CLOCK_20_MHZ_VAL 20 #define SPI_MAX_CLOCK_25_MHZ_VAL 25 #define SPI_MAX_CLOCK_33_MHZ_VAL 33 |