Changeset 476
- Timestamp:
- 02/04/04 17:56:51 (5 years ago)
- Files:
-
- trunk/libxode/include/libxode.h (modified) (1 diff)
- trunk/libxode/src/sha.c (modified) (2 diffs)
- trunk/libxode/src/str.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libxode/include/libxode.h
r423 r476 421 421 */ 422 422 423 #include <stdint.h> 424 423 425 typedef struct { 424 u nsigned longH[5];425 u nsigned longW[80];426 int lenW;427 u nsigned longsizeHi,sizeLo;426 uint32_t H[5]; 427 uint32_t W[80]; 428 int32_t lenW; 429 uint32_t sizeHi,sizeLo; 428 430 } LIBXODE_SHA_CTX; 429 431 trunk/libxode/src/sha.c
r423 r476 64 64 for (i = 0; i < len; i++) { 65 65 ctx->W[ctx->lenW / 4] <<= 8; 66 ctx->W[ctx->lenW / 4] |= (u nsigned long)dataIn[i];66 ctx->W[ctx->lenW / 4] |= (uint32_t)dataIn[i]; 67 67 if ((++ctx->lenW) % 64 == 0) { 68 68 shaHashBlock(ctx); … … 123 123 static void shaHashBlock(LIBXODE_SHA_CTX *ctx) { 124 124 int t; 125 u nsigned longA,B,C,D,E,TEMP;125 uint32_t A,B,C,D,E,TEMP; 126 126 127 127 for (t = 16; t <= 79; t++) trunk/libxode/src/str.c
r260 r476 137 137 { 138 138 arg = va_arg(ap,char *); 139 if(( int)arg == (int)s)139 if((void *)arg == (void *)s) 140 140 break; 141 141 else … … 186 186 { 187 187 arg = va_arg(ap,char *); 188 if(( int)arg == (int)p)188 if((void *)arg == (void *)p) 189 189 break; 190 190 else
