Compile errors fixed

Compile errors fixed
This commit is contained in:
MassimilianoPinto
2014-02-28 12:56:09 +01:00
parent 45543eceed
commit a2285e9e00
2 changed files with 1 additions and 2 deletions

View File

@ -404,7 +404,7 @@ USERS *rval;
if ((rval = calloc(1, sizeof(USERS))) == NULL) if ((rval = calloc(1, sizeof(USERS))) == NULL)
return NULL; return NULL;
if ((rval->data = hashtable_alloc(USERS_HASHTABLE_SIZE, uh_hfun, uh_cmpfun)) == NULL) { if ((rval->data = hashtable_alloc(USERS_HASHTABLE_DEFAULT_SIZE, uh_hfun, uh_cmpfun)) == NULL) {
free(rval); free(rval);
return NULL; return NULL;
} }

View File

@ -1108,7 +1108,6 @@ int gw_find_mysql_user_password_sha1(char *username, uint8_t *gateway_password,
SERVICE *service = NULL; SERVICE *service = NULL;
struct sockaddr_in *client; struct sockaddr_in *client;
char *user_password = NULL; char *user_password = NULL;
DCB *dcb = (DCB *)repository;
MYSQL_USER_HOST key; MYSQL_USER_HOST key;
service = (SERVICE *) dcb->service; service = (SERVICE *) dcb->service;