: > if ((serv = getservbyport(htons(23), "tcp")) == NULL) {: ^^^^^^^^^: this parameter is not "short", it's an int ! time to the RTfineManual...C's promotion rules will take care of that on both ends. Not aproblem.Warner