On Thu, 9 Nov 2000, Lewis, Jason wrote: >I am compiling circle30bpl17 on cygwin and I get an error in comm.c for and >undeclared socklen_t in the new_descriptor function. I declare socklen_t >which takes care of the erro but the says unused variable. Is this like a >typo of it it supposed to be socklen_t? int new_descriptor(socket_t s) { socket_t desc; int sockets_connected = 0; socklen_t i; static int last_desc = 0; /* last descriptor number */ struct descriptor_data *newd; struct sockaddr_in peer; struct hostent *from; /* accept the new connection */ i = sizeof(peer); if ((desc = accept(s, (struct sockaddr *) &peer, &i)) == INVALID_SOCKET) { perror("SYSERR: accept"); return (-1); } 'i' is used immediately, so it shouldn't be unused. It would help to copy & paste the actualy compiler warnings. -- George Greer greerga@circlemud.org +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/11/01 PDT