> > Use:> > if ((serv = getservbyport(htons(23), "tcp")) == NULL) { ^^^^^^^^^this parameter is not "short", it's an int ! time to the RTfineManual...