~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/checksum.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
 
17
 
#include "config.h"
18
 
#include "drizzled/internal/my_sys.h"
 
17
#include "mysys_priv.h"
19
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 */