From bc5b9a75c326f277e5f89e01a3b8f7f0519a99f6 Mon Sep 17 00:00:00 2001 From: Alexandre BIQUE Date: Wed, 11 Nov 2020 15:54:56 +0100 Subject: [PATCH] Make buf variable static --- libedfmt/dwarf2-trans.c | 2 +- libedfmt/stabs-trans.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libedfmt/dwarf2-trans.c b/libedfmt/dwarf2-trans.c index 967b8224..1ce43f74 100644 --- a/libedfmt/dwarf2-trans.c +++ b/libedfmt/dwarf2-trans.c @@ -19,7 +19,7 @@ /** * Temporary buffer outside function to optimize function recursion */ -char buf[BUFSIZ]; +static char buf[BUFSIZ]; /** * Transform hash table diff --git a/libedfmt/stabs-trans.c b/libedfmt/stabs-trans.c index f2eefec1..9af8b492 100644 --- a/libedfmt/stabs-trans.c +++ b/libedfmt/stabs-trans.c @@ -25,7 +25,7 @@ hash_t types_added; /** * Optimize stack allocation by setting a global pointer for string things */ -char buf[BUFSIZ]; +static char buf[BUFSIZ]; /** * Advanced iterating of a structure element