diff options
author | Luis Lozano <llozano@google.com> | 2020-11-22 01:51:16 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-15 18:11:26 +0000 |
commit | ba362eff8aab9cd9bd145cc9ea66a0990df7b7ae (patch) | |
tree | e896ff3822ca2659898ef7283a6498ccbf0d7e06 | |
parent | a7afd3d55f5ea33f0cbeaabc4b61e4d05bec8f14 (diff) | |
download | chrome-ec-ba362eff8aab9cd9bd145cc9ea66a0990df7b7ae.tar.gz |
Fix use of int const in size of array.
Compiler complains about this use of a GNU extension now.
Replace by a #define.
BUG=chromium:1151317
BRANCH=servo
TEST=to be done
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: If11fe0dcbc14f91564a6b3f09a6b0e109b7843fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2827322
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | fuzz/usb_pd_fuzz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/usb_pd_fuzz.c b/fuzz/usb_pd_fuzz.c index 1d44921817..d2a0e1f22c 100644 --- a/fuzz/usb_pd_fuzz.c +++ b/fuzz/usb_pd_fuzz.c @@ -154,7 +154,7 @@ static pthread_cond_t done_cond; static pthread_mutex_t lock; enum tcpc_cc_voltage_status next_cc1, next_cc2; -const int MAX_MESSAGES = 8; +#define MAX_MESSAGES 8 static struct message messages[MAX_MESSAGES]; void run_test(void) |