Mercurial > hg > toybox
comparison toys/sha1.c @ 186:25447caf1b4b
Change command main() functions to return void, and exit(toys.exitval) from
the toybox infrastructure instead. Eliminates a return call from each command.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 29 Nov 2007 18:14:37 -0600 |
parents | 318fc45fe7bf |
children |
comparison
equal
deleted
inserted
replaced
185:29e2051296fd | 186:25447caf1b4b |
---|---|
44 void printy(unsigned char *this) | 44 void printy(unsigned char *this) |
45 { | 45 { |
46 int i; | 46 int i; |
47 | 47 |
48 for (i = 0; i < 20; i++) printf("%02x", this[i]); | 48 for (i = 0; i < 20; i++) printf("%02x", this[i]); |
49 putchar('\n'); | 49 xputc('\n'); |
50 } | 50 } |
51 | 51 |
52 /* Hash a single 512-bit block. This is the core of the algorithm. */ | 52 /* Hash a single 512-bit block. This is the core of the algorithm. */ |
53 | 53 |
54 void sha1_transform(struct sha1 *this) | 54 void sha1_transform(struct sha1 *this) |