~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/checksum.c

Merged in code for extra warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
 
17
 
#include "config.h"
18
 
#include "drizzled/internal/my_sys.h"
19
 
 
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
 
 
17
#include "mysys_priv.h"
 
18
 
 
19
#include <my_sys.h>
20
20
#include <zlib.h>
21
21
 
22
 
namespace drizzled
23
 
{
24
 
namespace internal
25
 
{
26
 
 
27
22
/*
28
23
  Calculate a long checksum for a memoryblock.
29
24
 
36
31
 
37
32
ha_checksum my_checksum(ha_checksum crc, const unsigned char *pos, size_t length)
38
33
{
39
 
  return ha_checksum(crc32((uint32_t)crc, pos, uInt(length)));
 
34
  return (ha_checksum)crc32((uint)crc, pos, length);
40
35
}
41
36
 
42
 
} /* namespace internal */
43
 
} /* namespace drizzled */