~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/completion_hash.c

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Small portability changes by Monty. Changed also to use my_malloc/my_free
21
21
 */
22
22
 
23
 
#include <my_global.h>
24
 
#include <m_string.h>
 
23
#include "client_priv.h"
 
24
#include <mystrings/m_string.h>
25
25
#undef SAFEMALLOC                               // Speed things up
26
 
#include <my_sys.h>
27
26
#include "completion_hash.h"
28
27
 
29
28
uint hashpjw(const char *arKey, uint nKeyLength)
206
205
void completion_hash_clean(HashTable *ht)
207
206
{
208
207
  free_root(&ht->mem_root,MYF(0));
209
 
  bzero((char*) ht->arBuckets,ht->nTableSize*sizeof(Bucket *));
 
208
  memset((char*) ht->arBuckets, 0, ht->nTableSize*sizeof(Bucket *));
210
209
}
211
210
 
212
211