summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_utf8.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-10-23 11:30:09 +0200
committerBen Laurie <ben@openssl.org>1999-10-23 11:30:09 +0200
commit042a93e443732418df4714d217ccc0b35cdc4eb5 (patch)
tree7d572b0bc6b75f3946d959cb3a5cfa49981ec1c8 /crypto/asn1/a_utf8.c
parentDon't return stuff from void functions. (diff)
downloadopenssl-042a93e443732418df4714d217ccc0b35cdc4eb5.tar.xz
openssl-042a93e443732418df4714d217ccc0b35cdc4eb5.zip
Constification.
Diffstat (limited to 'crypto/asn1/a_utf8.c')
-rw-r--r--crypto/asn1/a_utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/a_utf8.c b/crypto/asn1/a_utf8.c
index 45434be4fa..b5125af224 100644
--- a/crypto/asn1/a_utf8.c
+++ b/crypto/asn1/a_utf8.c
@@ -100,9 +100,9 @@ ASN1_UTF8STRING *d2i_ASN1_UTF8STRING(ASN1_UTF8STRING **a, unsigned char **pp,
* -4 = character encoded incorrectly (not minimal length).
*/
-int UTF8_getc(unsigned char *str, int len, unsigned long *val)
+int UTF8_getc(const unsigned char *str, int len, unsigned long *val)
{
- unsigned char *p;
+ const unsigned char *p;
unsigned long value;
int ret;
if(len <= 0) return 0;