startup &or
startup 9000 &and when I do that, it closes the terminal. Any thoughts?
signal (SIGHUP, SIG_IGN);
gcc -c -Wall -O -g comm.c
comm.c: In function init_descriptor:
comm.c:868: warning: pointer targets in passing argument 3 of getsockname differ in signedness
/usr/include/sys/socket.h:119: note: expected socklen_t * __restrict__ but argument is of type int *
comm.c:869: warning: pointer targets in passing argument 3 of accept differ in signedness
/usr/include/sys/socket.h:214: note: expected socklen_t * __restrict__ but argument is of type int *
comm.c:898: warning: pointer targets in passing argument 3 of getpeername differ in signedness
/usr/include/sys/socket.h:133: note: expected socklen_t * __restrict__ but argument is of type int *
gcc -c -Wall -O -g comm.c
comm.c: In function init_descriptor:
comm.c:868: warning: pointer targets in passing argument 3 of getsockname differ in signedness
/usr/include/sys/socket.h:119: note: expected socklen_t * __restrict__ but argument is of type int *
comm.c:869: warning: pointer targets in passing argument 3 of accept differ in signedness
/usr/include/sys/socket.h:214: note: expected socklen_t * __restrict__ but argument is of type int *
comm.c:898: warning: pointer targets in passing argument 3 of getpeername differ in signedness
/usr/include/sys/socket.h:133: note: expected socklen_t * __restrict__ but argument is of type int *
socklen_t getsockname args( ( int s, struct sockaddr *name, int *namelen ) );
socklen_t getsockname args( ( int s, struct sockaddr *name, int *namelen ) );
getsockname( control, (struct sockaddr *) &sock, &size );
if ( ( desc = accept( control, (struct sockaddr *) &sock, &size) ) < 0 )
{
perror( "New_descriptor: accept" );
return;
}
if ( getpeername( desc, (struct sockaddr *) &sock, &size ) < 0 )
{
perror( "New_descriptor: getpeername" );
dnew->host = str_dup( "(unknown)" );
}
gcc -c -Wall -O -g comm.c
comm.c: In function init_descriptor:
comm.c:868: warning: pointer targets in passing argument 3 of getsockname differ in signedness
/usr/include/sys/socket.h:119: note: expected socklen_t * __restrict__ but argument is of type int *
comm.c:869: warning: pointer targets in passing argument 3 of accept differ in signedness
/usr/include/sys/socket.h:214: note: expected socklen_t * __restrict__ but argument is of type int *
comm.c:898: warning: pointer targets in passing argument 3 of getpeername differ in signedness
/usr/include/sys/socket.h:133: note: expected socklen_t * __restrict__ but argument is of type int *
void init_descriptor( int control )
{
char buf[MAX_STRING_LENGTH];
DESCRIPTOR_DATA *dnew;
struct sockaddr_in sock;
struct hostent *from;
int desc;
socklen_t * size;
size = sizeof(sock);
getsockname( control, (struct sockaddr *) &sock, &size );
if ( ( desc = accept( control, (struct sockaddr *) &sock, &size) ) < 0 )
{
perror( "New_descriptor: accept" );
return;
}
comm.c: In function init_descriptor:
comm.c:896: warning: assignment makes pointer from integer without a cast
comm.c:897: warning: passing argument 3 of getsockname from incompatible pointer type
I'm having problems starting up my mud (stock ROM24b) in the latest version of ubuntu. I get it to compile (after fixing the tables.h issue), but when I go to do or and when I do that, it closes the terminal. Any thoughts?