Jump to content
  • 0
Sign in to follow this  
vBrenth

New Commits.

Question

I am using CentOS 6.0 and running with uptodate hercules but today there's some recent commits and when i update my Hercules i get 0 errors, but when i try to recompile my server it gives me.

 

 

clif.c: In function âclif_parse_LoadEndAckâ:clif.c:18970: error: invalid storage class for function âpacketdb_addpacketâclif.c:19854: error: expected declaration or statement at end of input

18970*

 

static void __attribute__ ((unused)) packetdb_addpacket(short cmd, int len, ...) {    va_list va;    int i;    int pos;    pFunc func;    if (cmd > MAX_PACKET_DB) {        ShowError("Packet Error: packet 0x%x is greater than the maximum allowed (0x%x), skipping...n", cmd, MAX_PACKET_DB);        return;    }    packet_db[cmd].len = len;    va_start(va,len);    pos = va_arg(va, int);    if( pos == 0xFFFF ) /* nothing more to do */        return;    va_end(va);    va_start(va,len);    func = va_arg(va,pFunc);    packet_db[cmd].func = func;    for (i = 0; i < MAX_PACKET_POS; i++) {        pos = va_arg(va, int);        if (pos == 0xFFFF)            break;        packet_db[cmd].pos[i] = pos;    }    va_end(va);}void packetdb_loaddb(void) {    memset(packet_db,0,sizeof(packet_db));        #define packet(id, size, ...) packetdb_addpacket((id), (size), ##__VA_ARGS__, 0xFFFF)    #define packetKeys(a,b,c) do { clif->cryptKey[0] = (a); clif->cryptKey[1] = (; clif->cryptKey[2] = (c); } while(0)    #include "packets.h" /* load structure data */    #undef packet    #undef packetKeys}void clif_bc_ready(void) {    if( battle_config.display_status_timers )        clif->status_change = clif_status_change;    else        clif->status_change = clif_status_change_notick;    switch( battle_config.packet_obfuscation ) {        case 0:            clif->parse_cmd = clif_parse_cmd_normal;            break;        default:        case 1:            clif->parse_cmd = clif_parse_cmd_optional;            break;        case 2:            clif->parse_cmd = clif_parse_cmd_decrypt;            break;    }} 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Solved: Uhm it was my GCC version thanks to

Nebrasska, Milky-milk, Shikazu and Valo on IRC!

Edited by Zer Wildblood

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.