diff options
author | Wolfgang Denk <wd@denx.de> | 2007-07-10 00:01:28 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-07-10 00:01:28 +0200 |
commit | 4ef218f6fdf8d747f4589da5252b004e7d2c2876 (patch) | |
tree | 300416f5afbdfae1d680578f9d8b5561e6dd9884 /tools | |
parent | bf6a9ca9b2aa219612c3678444b8123e28aa8940 (diff) | |
download | u-boot-imx-4ef218f6fdf8d747f4589da5252b004e7d2c2876.zip u-boot-imx-4ef218f6fdf8d747f4589da5252b004e7d2c2876.tar.gz u-boot-imx-4ef218f6fdf8d747f4589da5252b004e7d2c2876.tar.bz2 |
Coding style cleanup; update CHANGELOG.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ubsha1.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/ubsha1.c b/tools/ubsha1.c index bc87760..b37b2b7 100644 --- a/tools/ubsha1.c +++ b/tools/ubsha1.c @@ -84,7 +84,7 @@ int main (int argc, char **argv) cmdname, imagefile, strerror(errno)); exit (EXIT_FAILURE); } - + /* create a copy, so we can blank out the sha1 sum */ data = malloc (len); memcpy (data, ptr, len); @@ -93,12 +93,11 @@ int main (int argc, char **argv) for (i = 0; i < SHA1_SUM_LEN; i++) { ptroff[i] = 0; } - + sha1_csum ((unsigned char *) data, len, (unsigned char *)output); printf ("U-Boot sum:\n"); - for (i = 0; i < 20 ; i++) - { + for (i = 0; i < 20 ; i++) { printf ("%02X ", output[i]); } printf ("\n"); @@ -109,7 +108,7 @@ int main (int argc, char **argv) cmdname, imagefile, strerror(errno)); exit (EXIT_FAILURE); } - + free (data); (void) munmap((void *)ptr, len); (void) close (ifd); |