diff options
author | paul <paul> | 2006-01-17 17:40:45 +0000 |
---|---|---|
committer | paul <paul> | 2006-01-17 17:40:45 +0000 |
commit | 44e62540e81dfe1a704b8f038ead8d8b18ba3cf9 (patch) | |
tree | 7b424f13656623ea3af4093f2a0ff1b0f26af3b7 /lib/md5.c | |
parent | 9ad621648d0676f200d632e9a9a160ad234ac902 (diff) | |
download | quagga-44e62540e81dfe1a704b8f038ead8d8b18ba3cf9.tar.bz2 quagga-44e62540e81dfe1a704b8f038ead8d8b18ba3cf9.tar.xz |
[lib/md5] md5_loop should take void pointer for more useful caller warnings.
2006-01-17 Paul Jakma <paul.jakma@sun.com>
* md5.{c,h}: (md5_loop) Is better off taking a void * and doing
cast to byte wise type internally, avoids needs for casts
in users.
Diffstat (limited to 'lib/md5.c')
-rw-r--r-- | lib/md5.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -146,9 +146,10 @@ void md5_init(md5_ctxt *ctxt) memset (ctxt->md5_buf, 0, sizeof(ctxt->md5_buf)); } -void md5_loop(md5_ctxt *ctxt, const uint8_t *input, uint len) +void md5_loop(md5_ctxt *ctxt, const void *vinput, uint len) { uint gap, i; + uint8_t *input = vinput; ctxt->md5_n += len * 8; /* byte to bit */ gap = MD5_BUFLEN - ctxt->md5_i; |