X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fubsha1.c;h=625e13f90c75c91afeba0eed29051a2ab920290e;hb=bace3d00f28040f061e0e21126bc70cfb9d20930;hp=c4203ed99e3da8e55fcb93c4a1edd09d132530e6;hpb=2f8d396b9302eddcd8d552648e101a46b7a80acd;p=u-boot diff --git a/tools/ubsha1.c b/tools/ubsha1.c index c4203ed99e..625e13f90c 100644 --- a/tools/ubsha1.c +++ b/tools/ubsha1.c @@ -28,30 +28,9 @@ #include #include #include -#ifndef __MINGW32__ -#include -#endif #include #include "sha1.h" -#ifndef __ASSEMBLY__ -#define __ASSEMBLY__ /* Dirty trick to get only #defines */ -#endif -#include -#undef __ASSEMBLY__ - -#ifndef O_BINARY /* should be define'd on __WIN32__ */ -#define O_BINARY 0 -#endif - -#ifndef MAP_FAILED -#define MAP_FAILED (-1) -#endif - -extern int errno; - -extern void sha1_csum (unsigned char *input, int ilen, unsigned char output[20]); - int main (int argc, char **argv) { unsigned char output[20];