summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-06-22 01:57:31 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-06-22 01:57:31 +0000
commitc76ce989a22a1e133c2c2d95f9c3bc9f9fdbf5bf (patch)
treee68bc682eba118cd709567b39e8bb89746a9b9fe /lib/libc
parent268ff50413bd6761d80e9ab0223ba4c35315b41b (diff)
Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/hash/helper.c8
-rw-r--r--lib/libc/hash/mdX.36
-rw-r--r--lib/libc/hash/rmd160.36
-rw-r--r--lib/libc/hash/sha1.36
-rw-r--r--lib/libc/hash/sha2.36
5 files changed, 16 insertions, 16 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));
}
diff --git a/lib/libc/hash/mdX.3 b/lib/libc/hash/mdX.3
index 2a9c9996c44..d43aeeb6943 100644
--- a/lib/libc/hash/mdX.3
+++ b/lib/libc/hash/mdX.3
@@ -6,7 +6,7 @@
.\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
.\" ----------------------------------------------------------------------------
.\"
-.\" $OpenBSD: mdX.3,v 1.6 2004/05/16 18:29:09 otto Exp $
+.\" $OpenBSD: mdX.3,v 1.7 2004/06/22 01:57:29 jfb Exp $
.\"
.Dd April 29, 2004
.Dt MDX 3
@@ -38,9 +38,9 @@
.Ft "char *"
.Fn MDXEnd "MDX_CTX *context" "char *buf"
.Ft "char *"
-.Fn MDXFile "char *filename" "char *buf"
+.Fn MDXFile "const char *filename" "char *buf"
.Ft "char *"
-.Fn MDXFileChunk "char *filename" "char *buf" "off_t offset" "off_t length"
+.Fn MDXFileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *"
.Fn MDXData "const u_int8_t *data" "size_t len" "char *buf"
.Sh DESCRIPTION
diff --git a/lib/libc/hash/rmd160.3 b/lib/libc/hash/rmd160.3
index 112c68a1658..fad7ba6f18b 100644
--- a/lib/libc/hash/rmd160.3
+++ b/lib/libc/hash/rmd160.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rmd160.3,v 1.25 2004/05/16 18:29:09 otto Exp $
+.\" $OpenBSD: rmd160.3,v 1.26 2004/06/22 01:57:29 jfb Exp $
.\"
.\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -47,9 +47,9 @@
.Ft "char *"
.Fn RMD160End "RMD160_CTX *context" "char *buf"
.Ft "char *"
-.Fn RMD160File "char *filename" "char *buf"
+.Fn RMD160File "const char *filename" "char *buf"
.Ft "char *"
-.Fn RMD160FileChunk "char *filename" "char *buf" "off_t offset" "off_t length"
+.Fn RMD160FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *"
.Fn RMD160Data "const u_int8_t *data" "size_t len" "char *buf"
.Sh DESCRIPTION
diff --git a/lib/libc/hash/sha1.3 b/lib/libc/hash/sha1.3
index d4ddb42c543..ea7d547961a 100644
--- a/lib/libc/hash/sha1.3
+++ b/lib/libc/hash/sha1.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sha1.3,v 1.33 2004/05/16 18:29:09 otto Exp $
+.\" $OpenBSD: sha1.3,v 1.34 2004/06/22 01:57:29 jfb Exp $
.\"
.\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -47,9 +47,9 @@
.Ft "char *"
.Fn SHA1End "SHA1_CTX *context" "char *buf"
.Ft "char *"
-.Fn SHA1File "char *filename" "char *buf"
+.Fn SHA1File "const char *filename" "char *buf"
.Ft "char *"
-.Fn SHA1FileChunk "char *filename" "char *buf" "off_t offset" "off_t length"
+.Fn SHA1FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *"
.Fn SHA1Data "const u_int8_t *data" "size_t len" "char *buf"
.Sh DESCRIPTION
diff --git a/lib/libc/hash/sha2.3 b/lib/libc/hash/sha2.3
index 3cf2400da86..77c8abb5eb7 100644
--- a/lib/libc/hash/sha2.3
+++ b/lib/libc/hash/sha2.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sha2.3,v 1.10 2004/05/16 18:29:09 otto Exp $
+.\" $OpenBSD: sha2.3,v 1.11 2004/06/22 01:57:29 jfb Exp $
.\"
.\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -50,9 +50,9 @@
.Ft "char *"
.Fn SHA256_End "SHA256_CTX *context" "char *buf"
.Ft "char *"
-.Fn SHA256_File "char *filename" "char *buf"
+.Fn SHA256_File "const char *filename" "char *buf"
.Ft "char *"
-.Fn SHA256_FileChunk "char *filename" "char *buf" "off_t offset" "off_t length"
+.Fn SHA256_FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *"
.Fn SHA256_Data "u_int8_t *data" "size_t len" "char *buf"
.Ft void