#ifndef HAVE_PING
sonar_sensor_data *
-init_ping (Display *dpy, const char *subnet, int timeout,
+init_ping (Display *dpy, char **error_ret, const char *subnet, int timeout,
Bool resolve_p, Bool times_p, Bool debug_p)
{
if (! (!subnet || !*subnet || !strcmp(subnet, "default")))
/* 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;