torrentd

simple torrent daemon
git clone git://git.2f30.org/torrentd
Log | Files | Refs | LICENSE

commit 31267a8f4d0871b341811b124d2f427c3fd96a48
parent 4d84adbdc134b2f4a9aeb1ac895cbc86dafdff28
Author: sin <sin@2f30.org>
Date:   Thu, 17 Dec 2015 11:39:57 +0000

No need to name args in declarations

Diffstat:
Msbtd.h | 2+-
Msha1.h | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sbtd.h b/sbtd.h @@ -42,4 +42,4 @@ int tstbit(uint32_t *, int); uint8_t hex2int(int); uint8_t *hex2bin(const char *, uint8_t *, size_t); char *bin2hex(const uint8_t *, char *, size_t); -void sha1sum(uint8_t *, unsigned long, uint8_t *md); +void sha1sum(uint8_t *, unsigned long, uint8_t *); diff --git a/sha1.h b/sha1.h @@ -9,10 +9,10 @@ struct sha1 { }; /* reset state */ -void sha1_init(void *ctx); +void sha1_init(void *); /* process message */ -void sha1_update(void *ctx, const void *m, unsigned long len); +void sha1_update(void *, const void *, unsigned long); /* get message digest */ /* state is ruined after sum, keep a copy if multiple sum is needed */ /* part of the message might be left in s, zero it if secrecy is needed */ -void sha1_sum(void *ctx, uint8_t md[SHA1_DIGEST_LENGTH]); +void sha1_sum(void *, uint8_t *);