~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/crc32/crc32udf.cc

  • Committer: Brian Aker
  • Date: 2009-04-07 20:09:30 UTC
  • mfrom: (971.1.17 mordred)
  • Revision ID: brian@gaz-20090407200930-27jkul7lkwkjs2to
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
static int crc32udf_plugin_init(void *p)
55
55
{
56
 
  Function_builder **f = (Function_builder**) p;
 
56
  Function_builder **f = static_cast<Function_builder**>(p);
57
57
 
58
58
  *f= &crc32udf;
59
59
 
60
60
  return 0;
61
61
}
62
62
 
63
 
static int crc32udf_plugin_deinit(void *p)
64
 
{
65
 
  Function_builder *udff = (Function_builder *) p;
66
 
  (void)udff;
67
 
  return 0;
68
 
}
69
 
 
70
63
drizzle_declare_plugin(crc32)
71
64
{
72
65
  DRIZZLE_UDF_PLUGIN,
76
69
  "UDF for computing CRC32",
77
70
  PLUGIN_LICENSE_GPL,
78
71
  crc32udf_plugin_init, /* Plugin Init */
79
 
  crc32udf_plugin_deinit, /* Plugin Deinit */
 
72
  NULL,   /* Plugin Deinit */
80
73
  NULL,   /* status variables */
81
74
  NULL,   /* system variables */
82
75
  NULL    /* config options */