diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-06-22 01:57:31 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-06-22 01:57:31 +0000 |
commit | c76ce989a22a1e133c2c2d95f9c3bc9f9fdbf5bf (patch) | |
tree | e68bc682eba118cd709567b39e8bb89746a9b9fe /lib/libc/hash/helper.c | |
parent | 268ff50413bd6761d80e9ab0223ba4c35315b41b (diff) |
Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
Diffstat (limited to 'lib/libc/hash/helper.c')
-rw-r--r-- | lib/libc/hash/helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/hash/helper.c b/lib/libc/hash/helper.c index 5735e851813..016a31ecd4e 100644 --- a/lib/libc/hash/helper.c +++ b/lib/libc/hash/helper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: helper.c,v 1.5 2004/05/03 17:30:14 millert Exp $ */ +/* $OpenBSD: helper.c,v 1.6 2004/06/22 01:57:29 jfb Exp $ */ /* * ---------------------------------------------------------------------------- @@ -10,7 +10,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$OpenBSD: helper.c,v 1.5 2004/05/03 17:30:14 millert Exp $"; +static const char rcsid[] = "$OpenBSD: helper.c,v 1.6 2004/06/22 01:57:29 jfb Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -46,7 +46,7 @@ HASHEnd(HASH_CTX *ctx, char *buf) } char * -HASHFileChunk(char *filename, char *buf, off_t off, off_t len) +HASHFileChunk(const char *filename, char *buf, off_t off, off_t len) { u_char buffer[BUFSIZ]; HASH_CTX ctx; @@ -73,7 +73,7 @@ HASHFileChunk(char *filename, char *buf, off_t off, off_t len) } char * -HASHFile(char *filename, char *buf) +HASHFile(const char *filename, char *buf) { return (HASHFileChunk(filename, buf, (off_t)0, (off_t)0)); } |