[U-Boot] [PATCH 2/3] ubsha1: drop unnecessary includes/prototypes
Mike Frysinger
vapier at gentoo.org
Thu Jan 21 10:03:21 CET 2010
This code doesn't use any config.h defines, and the sha1.h header already
declares a sha1_csum prototype.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
tools/ubsha1.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/tools/ubsha1.c b/tools/ubsha1.c
index 9774eea..625e13f 100644
--- a/tools/ubsha1.c
+++ b/tools/ubsha1.c
@@ -31,14 +31,6 @@
#include <sys/stat.h>
#include "sha1.h"
-#ifndef __ASSEMBLY__
-#define __ASSEMBLY__ /* Dirty trick to get only #defines */
-#endif
-#include <config.h>
-#undef __ASSEMBLY__
-
-extern void sha1_csum (unsigned char *input, int ilen, unsigned char output[20]);
-
int main (int argc, char **argv)
{
unsigned char output[20];
--
1.6.6
More information about the U-Boot
mailing list