diff options
author | monty@mashka.mysql.fi <> | 2003-09-13 11:35:29 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-09-13 11:35:29 +0300 |
commit | f300e3a164285c76a97b9ae6808d7cd555b6c176 (patch) | |
tree | 9c744cbdbd301249f0686bf0618b5f55b26d7a32 /mysys/checksum.c | |
parent | efce59fc3fcacf94c25a9648df03fda5e0a94b87 (diff) | |
download | mariadb-git-f300e3a164285c76a97b9ae6808d7cd555b6c176.tar.gz |
Remove 'extern' references from .cc files
Diffstat (limited to 'mysys/checksum.c')
-rw-r--r-- | mysys/checksum.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/checksum.c b/mysys/checksum.c index 664e768ef4e..92ec3d550f1 100644 --- a/mysys/checksum.c +++ b/mysys/checksum.c @@ -30,11 +30,13 @@ ha_checksum my_checksum(ha_checksum crc, const byte *pos, uint length) { -/* const byte *end=pos+length; +#ifdef NOT_USED + const byte *end=pos+length; for ( ; pos != end ; pos++) crc=((crc << 8) + *((uchar*) pos)) + (crc >> (8*sizeof(ha_checksum)-8)); return crc; -*/ +#else return (ha_checksum)crc32((uint)crc, (const uchar *)pos, length); +#endif } |