char *strdup(char *source);
gettimeofday(&last_time, (struct timeval *) 0);
gettimeofday(&last_time, NULL);and should be similarly changed elsewhere if the second argument wants a zero value.
if (bind(s, &sa, sizeof(sa), 0) < 0)
if( bind( s, ( struct sockaddr * )&sa, sizeof( sa ) ) == -1 )
if ((long) strncpy(newd->host, inet_ntoa(sock.sin_addr), 49) > 0)
if ((long) strncpy(newd->host, (char*)inet_ntoa(sock.sin_addr), 49) > 0)
The first time i compled it, it spit a ton of log errors at me and a few strdup conflit messages. I spent hours going through each file and deleting all log and strdup arguements i can find and i actually got it to compile but when i go to run the server it starts loading each area then stops at "Last Area" with no apparent error message…it just stops
ive recently decided that maybe going through each file and deleting all arguements that give errors isnt the best solution so ive decided to fix the problem rather then deleting it, but the lack of sillymud support online makes it very hard for someone with a basic knowledge of C and linux, but if anyone here can help that would be great
ive played on sillymuds for years but for some reason its the only codebase i never got to work…so im rather determined
here are my errors from a fresh untar
$ make
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGRO
URITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o c
In file included from comm.c:21:
protos.h:21: error: conflicting types for 'strdup'
protos.h:21: error: conflicting types for 'strdup'
comm.c: In function `main':
comm.c:133: error: incompatible type for argument 1 of `log'
comm.c:141: error: incompatible type for argument 1 of `log'
comm.c:147: error: incompatible type for argument 1 of `log'
comm.c:152: error: incompatible type for argument 1 of `log'
comm.c:171: error: incompatible type for argument 1 of `log'
comm.c:179: error: incompatible type for argument 1 of `log'
comm.c: In function `run_the_game':
comm.c:226: error: incompatible type for argument 1 of `log'
comm.c:229: error: incompatible type for argument 1 of `log'
comm.c:234: error: incompatible type for argument 1 of `log'
comm.c:240: error: incompatible type for argument 1 of `log'
comm.c:249: error: incompatible type for argument 1 of `log'
comm.c:253: error: incompatible type for argument 1 of `log'
comm.c: In function `game_loop':
comm.c:287: warning: passing arg 2 of `gettimeofday' from inc
ype
comm.c:340: warning: passing arg 2 of `gettimeofday' from inc
ype
comm.c: In function `write_to_q':
comm.c:630: error: incompatible type for argument 1 of `log'
comm.c:637: error: incompatible type for argument 1 of `log'
comm.c: In function `init_socket':
comm.c:747: warning: passing arg 2 of `bind' from incompatibl
comm.c:747: error: too many arguments to function `bind'
comm.c:771:8: macro names must be identifiers
comm.c: In function `printhost':
comm.c:809: warning: passing arg 1 of `gethostbyaddr' from in
type
comm.c:810: warning: assignment discards qualifiers from poin
comm.c: In function `printhostaddr':
comm.c:828: warning: passing arg 1 of `gethostbyaddr' from in
type
comm.c:829: warning: assignment discards qualifiers from poin
comm.c: In function `new_descriptor':
comm.c:881: warning: passing arg 2 of `strncpy' makes pointer
ut a cast
comm.c: In function `process_input':
comm.c:1002: error: incompatible type for argument 1 of `log'
comm.c: In function `close_sockets':
comm.c:1083: error: incompatible type for argument 1 of `log'
comm.c: In function `close_socket':
comm.c:1124: error: incompatible type for argument 1 of `log'
comm.c:1141: error: incompatible type for argument 1 of `log'
comm.c:1146: error: incompatible type for argument 1 of `log'
comm.c: In function `coma':
comm.c:1239: error: incompatible type for argument 1 of `log'
comm.c:1258: error: incompatible type for argument 1 of `log'
comm.c:1271: error: incompatible type for argument 1 of `log'
comm.c:1277: error: incompatible type for argument 1 of `log'
comm.c: In function `act':
comm.c:1524: error: incompatible type for argument 1 of `log'
comm.c:1525: error: incompatible type for argument 1 of `log'