diff -c server.c.orig server.c *** server.c.orig Sun Mar 26 20:33:31 1995 --- server.c Wed Aug 7 13:47:05 1996 *************** *** 244,250 **** char buff[MESS_LEN + 1]; int len, flen = sizeof(ca); ! if ((len = recvfrom(fid, buff, MESS_LEN, 0, &ca, &flen)) < 0) { if (errno != EINTR) { warn_log("Error in receiving packet\n"); } --- 244,250 ---- char buff[MESS_LEN + 1]; int len, flen = sizeof(ca); ! if ((len = recvfrom(fid, buff, MESS_LEN, 0, (struct sockaddr *)&ca, &flen)) < 0) { if (errno != EINTR) { warn_log("Error in receiving packet\n"); } *************** *** 543,549 **** saddr->sin_family = hp->h_addrtype; saddr->sin_addr.s_addr = htonl(INADDR_ANY); saddr->sin_port = sp->s_port; ! if (bind(id, saddr, sizeof(*saddr)) < 0) { sys_error_log("bind"); exit(EXIT_FAILURE); } --- 543,549 ---- saddr->sin_family = hp->h_addrtype; saddr->sin_addr.s_addr = htonl(INADDR_ANY); saddr->sin_port = sp->s_port; ! if (bind(id, (struct sockaddr *)saddr, sizeof(*saddr)) < 0) { sys_error_log("bind"); exit(EXIT_FAILURE); } *************** *** 586,592 **** debug_log("Send: %s [%ld]: \"%.*s\"\n", ((sp == CA_ADDR) ? "" : sp->parent->name), (long)sp, MAX_DEBUG_COLUMN, mess); ! if (sendto(sockid, mess, strlen(mess), 0, saddr, sizeof(*saddr)) < 0) { warn_log("Error in sending packet: %s\n", mess); } } --- 586,592 ---- debug_log("Send: %s [%ld]: \"%.*s\"\n", ((sp == CA_ADDR) ? "" : sp->parent->name), (long)sp, MAX_DEBUG_COLUMN, mess); ! if (sendto(sockid, mess, strlen(mess), 0, (struct sockaddr *)saddr, sizeof(*saddr)) < 0) { warn_log("Error in sending packet: %s\n", mess); } }