diff options
author | unknown <monty@mashka.mysql.fi> | 2003-09-13 11:35:29 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-09-13 11:35:29 +0300 |
commit | c4079104f213ac2c1ec968f1043172f2cc76c524 (patch) | |
tree | 9c744cbdbd301249f0686bf0618b5f55b26d7a32 /mysys/checksum.c | |
parent | 11930efba69eb4d0d76affe34a1323cdd5b5bd79 (diff) | |
download | mariadb-git-c4079104f213ac2c1ec968f1043172f2cc76c524.tar.gz |
Remove 'extern' references from .cc files
mysys/checksum.c:
Cleanup
mysys/my_static.h:
Remove not used include file
sql/item_strfunc.cc:
Remove 'extern' references
sql/lock.cc:
Remove 'extern' references
sql/log.cc:
Remove 'extern' references
sql/mysql_priv.h:
Add 'extern' references
sql/net_serv.cc:
Added comment
sql/repl_failsafe.cc:
Remove 'extern' references
sql/set_var.cc:
Remove 'extern' references
sql/sql_derived.cc:
Remove 'extern' references
sql/sql_insert.cc:
Remove 'extern' references
sql/sql_parse.cc:
Remove 'extern' references
sql/sql_prepare.cc:
Remove 'extern' references
sql/sql_repl.cc:
Remove 'extern' references
sql/sql_string.cc:
Added comment
sql/sql_table.cc:
Remove 'extern' references
sql/sql_test.cc:
Remove 'extern' references
sql/sql_yacc.yy:
Remove 'extern' references
sql/table.cc:
Remove 'extern' references
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 } |