diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-12-22 09:40:29 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-01-09 18:03:10 +0100 |
commit | d6efe244e485d119ff4d3505d9c6fc0ddc9b4fb5 (patch) | |
tree | 1246fac48c25ca3e7ea706ea4d0d86854849f9db | |
parent | 558605cf4fe9558dff9b8ea2241fbeb526dc353d (diff) |
cmd_mem: localize state variables
These "last" variables aren't used outside of this file, so add static.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | common/cmd_mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index f7a442a88e6..f03233cee8b 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; |