Update of /cvsroot/bitcollider/bitprint
In directory usw-pr-cvs1:/tmp/cvs-serv28375
Modified Files:
bitprint.c
Log Message:
Fixed the static/non-static compiler warnings.
Index: bitprint.c
===================================================================
RCS file: /cvsroot/bitcollider/bitprint/bitprint.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** bitprint.c 2001/07/16 20:24:54 1.4
--- bitprint.c 2001/07/16 20:36:59 1.5
***************
*** 87,97 ****
typedef unsigned long LONG; /* 32-or-more-bit quantity */
! void sha_init(SHA_INFO *);
! void sha_update(SHA_INFO *, BYTE *, int);
! void sha_final(unsigned char [20], SHA_INFO *);
!
! void sha_stream(unsigned char [20], SHA_INFO *, FILE *);
! void sha_print(unsigned char [20]);
! char *sha_version(void);
#define SHA_VERSION 1
--- 87,97 ----
typedef unsigned long LONG; /* 32-or-more-bit quantity */
! static void sha_init(SHA_INFO *);
! static void sha_update(SHA_INFO *, BYTE *, int);
! static void sha_final(unsigned char [20], SHA_INFO *);
!
! static void sha_stream(unsigned char [20], SHA_INFO *, FILE *);
! static void sha_print(unsigned char [20]);
! static char *sha_version(void);
#define SHA_VERSION 1
***************
*** 104,116 ****
typedef unsigned char byte;
! void tiger(word64 *str, word64 length, word64 *res);
/* =================================================================== */
/* FILE: tigertree.h */
/* =================================================================== */
! void tt_init(TT_CONTEXT *ctx);
! void tt_update(TT_CONTEXT *ctx, unsigned char *buffer, unsigned long len);
! void tt_digest(TT_CONTEXT *ctx, unsigned char *hash);
! void tt_copy(TT_CONTEXT *dest, TT_CONTEXT *src);
/* =================================================================== */
--- 104,116 ----
typedef unsigned char byte;
! static void tiger(word64 *str, word64 length, word64 *res);
/* =================================================================== */
/* FILE: tigertree.h */
/* =================================================================== */
! static void tt_init(TT_CONTEXT *ctx);
! static void tt_update(TT_CONTEXT *ctx, unsigned char *buffer, unsigned long len);
! static void tt_digest(TT_CONTEXT *ctx, unsigned char *hash);
! static void tt_copy(TT_CONTEXT *dest, TT_CONTEXT *src);
/* =================================================================== */
***************
*** 178,184 ****
#define ONEK_TIGER "D1593128F306DD1C2831459205F14CCB843E675F021F2EA2"
! int check_sha1_hash(const char *result, unsigned char *data, int len);
! int check_tigertree_hash(const char *result, unsigned char *data, int len);
! int hash_sanity_check(void);
int bitziBitprintFile(const char *fileName, unsigned char *bitprint)
--- 178,184 ----
#define ONEK_TIGER "D1593128F306DD1C2831459205F14CCB843E675F021F2EA2"
! static int check_sha1_hash(const char *result, unsigned char *data, int len);
! static int check_tigertree_hash(const char *result, unsigned char *data, int len);
! static int hash_sanity_check(void);
int bitziBitprintFile(const char *fileName, unsigned char *bitprint)
***************
*** 245,248 ****
--- 245,250 ----
bitziBitprintUpdate(&context, buffer, bufLen);
bitziBitprintFinal(&context, bitprint);
+
+ return 1;
}
***************
*** 591,595 ****
/* The compress function is a function. Requires smaller cache? */
! static tiger_compress(word64 *str, word64 state[3])
{
tiger_compress_macro(((word64*)str), ((word64*)state));
--- 593,597 ----
/* The compress function is a function. Requires smaller cache? */
! static void tiger_compress(word64 *str, word64 state[3])
{
tiger_compress_macro(((word64*)str), ((word64*)state));
|