Skip to contentSkip to conversation

cmd_mem: localize state variables

PATCH New Mike Frysinger 2 participants 2 messages Dec 22, 2010 – Jan 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_mem: localize state variables

These "last" variables aren't used outside of this file, so add static.

---
 common/cmd_mem.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
common/cmd_mem.c +3 -3
index f7a442a..f03233c 100644
@@ -48,9 +48,9 @@ static int mod_mem(cmd_tbl_t *, int, int, int, char * const []);
 /* Display values from last command.
  * Memory modify remembered values are different from display memory.
  */
-uint	dp_last_addr, dp_last_size;
-uint	dp_last_length = 0x40;
-uint	mm_last_addr, mm_last_size;
+static uint	dp_last_addr, dp_last_size;
+static uint	dp_last_length = 0x40;
+static uint	mm_last_addr, mm_last_size;
 
 static	ulong	base_address = 0;
 
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 cmd_mem: localize state variables

Dear Mike Frysinger,

Quoted 6 lines · In message <[email protected]> you wrote:

These "last" variables aren't used outside of this file, so add static.

---
 common/cmd_mem.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The heart is not a logical organ.
	-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4