From: Mike Frysinger Date: Wed, 22 Dec 2010 14:40:29 +0000 (-0500) Subject: cmd_mem: localize state variables X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d6efe244e485d119ff4d3505d9c6fc0ddc9b4fb5;p=project%2Fbcm63xx%2Fu-boot.git cmd_mem: localize state variables These "last" variables aren't used outside of this file, so add static. Signed-off-by: Mike Frysinger --- diff --git a/common/cmd_mem.c b/common/cmd_mem.c index f7a442a88e..f03233cee8 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -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;