Righto, I've been busy but I've finally got it done.
I installed the SWR copyover from darkwarriors, as suggested, and the following errors come up.
In function 'do_hotboot':
error: 'timer' undeclared (first use in this function)
error: 'timer_next' undeclared (first use in this function)
for ( timer = och->first_timer; timer; timer = timer_next )
warning: format argument is not a pointer (arg 8)
warning: too many arguments for format
fprintf( fp, "%d %d %d %d %d %s %s\n",
d->descriptor,
#ifdef MCCP
d->can_compress,
#else
0,
#endif
#ifdef GAVMXP
(int) d->mxp_detected,
#else
0,
#endif
och->in_room->vnum, d->port, d->idle, och->name, d->host );
In function 'hotboot_recover':
warning: char format, different type arg (arg 8)
warning: too many arguments for format
fscanf( fp, "%d %d %d %d %d %s %s\n", &desc, &dcompress, &room, &mxp, &dport, &idle, name, host );
The warnings just need another '%d' but I posted every problem with the compile. (surprisingly less than all the other times I've tried, but I've never used this snippet - nor has it had seperate files for hotboot.c and hotboot.h before)
Marowi
{edit}
Something I noticed. It fprints in the order of "desc, dcompress, mxp, room, dport, idle, name, host" but fscanfs in the order of "desc, dcompress, room, mxp, dport, idle, name, host" (mxp and room are switched around). I've fixed this in my copy. |