/* Get the name and address */
- name = addr = 0;
if ((addr = strtok(buf, " ,;\t\n")))
name = strtok(0, " ,;\t\n");
else
ping_bogie *pb = (ping_bogie *) b->closure;
u_char *packet;
struct ICMP *icmph;
- int result;
const char *token = "org.jwz.xscreensaver.sonar";
int pcktsiz = (sizeof(struct ICMP) + sizeof(struct timeval) +
/* Send it */
- if ((result = sendto(pd->icmpsock, packet, pcktsiz, 0,
- &pb->address, sizeof(pb->address)))
+ if (sendto(pd->icmpsock, packet, pcktsiz, 0,
+ &pb->address, sizeof(pb->address))
!= pcktsiz)
{
#if 0
if (new)
{
sonar_bogie *nn = new;
- while (nn && nn->next)
+ while (nn->next)
nn = nn->next;
nn->next = hostlist;
hostlist = new;