(_krb5_crc_update): const-ize (finally)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8883 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-08-03 01:45:14 +00:00
parent ffbbe2e8fe
commit 3ed2beb9a1

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -63,7 +63,7 @@ _krb5_crc_init_table(void)
} }
u_int32_t u_int32_t
_krb5_crc_update (char *p, size_t len, u_int32_t res) _krb5_crc_update (const char *p, size_t len, u_int32_t res)
{ {
while (len--) while (len--)
res = table[(res ^ *p++) & 0xFF] ^ (res >> 8); res = table[(res ^ *p++) & 0xFF] ^ (res >> 8);