summaryrefslogtreecommitdiff
path: root/src/txt-converter/login/login-converter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/txt-converter/login/login-converter.c')
-rw-r--r--src/txt-converter/login/login-converter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/txt-converter/login/login-converter.c b/src/txt-converter/login/login-converter.c
index a277ca949..f452d70aa 100644
--- a/src/txt-converter/login/login-converter.c
+++ b/src/txt-converter/login/login-converter.c
@@ -40,7 +40,7 @@ struct {
int sex,delflag;
} auth_fifo[AUTH_FIFO_SIZE];
int auth_fifo_pos=0;
-struct {
+struct auth_dat_ {
int account_id, sex;
char userid[24], pass[24], lastlogin[24];
int logincount;
@@ -72,7 +72,7 @@ char db_server_logindb[32] = "ragnarok";
int isGM(int account_id)
{
struct gm_account *p;
- p = numdb_search(gm_account_db,account_id);
+ p = (struct gm_account*)numdb_search(gm_account_db,account_id);
if( p == NULL)
return 0;
return p->level;
@@ -95,7 +95,7 @@ int read_gm_account()
if(line[0] == '/' || line[1] == '/' || line[2] == '/')
continue;
- p=malloc(sizeof(struct gm_account));
+ p = (struct gm_account*)malloc(sizeof(struct gm_account));
if(p==NULL){
printf("gm_account: out of memory!\n");
exit(0);
@@ -145,7 +145,7 @@ int mmo_auth_init(void)
fp=fopen("save/account.txt","r");
- auth_dat=malloc(sizeof(auth_dat[0])*256);
+ auth_dat = (struct auth_dat_*)malloc(sizeof(auth_dat[0])*256);
auth_max=256;
if(fp==NULL)
return 0;