projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
40f1574
)
src/liboping.c: Clean up untidy whitespace.
author
Florian Forster
<ff@octo.it>
Fri, 5 May 2017 06:50:50 +0000
(08:50 +0200)
committer
Florian Forster
<ff@octo.it>
Fri, 5 May 2017 08:47:06 +0000
(10:47 +0200)
src/liboping.c
patch
|
blob
|
history
diff --git
a/src/liboping.c
b/src/liboping.c
index
31b8813
..
1738255
100644
(file)
--- a/
src/liboping.c
+++ b/
src/liboping.c
@@
-458,7
+458,7
@@
static int ping_receive_one (pingobj_t *obj, struct timeval *now, int addrfam)
pinghost_t *host = NULL;
int recv_ttl;
uint8_t recv_qos;
pinghost_t *host = NULL;
int recv_ttl;
uint8_t recv_qos;
-
+
/*
* Set up the receive buffer..
*/
/*
* Set up the receive buffer..
*/
@@
-925,7
+925,7
@@
static int ping_get_ident (void)
retval = (int) random ();
dprintf ("Random number: %#x\n", retval);
retval = (int) random ();
dprintf ("Random number: %#x\n", retval);
-
+
return (retval);
}
return (retval);
}
@@
-1498,7
+1498,7
@@
int ping_send (pingobj_t *obj)
for (ptr = ph; ptr != NULL; ptr = ptr->next)
if (ptr->latency < 0.0)
ptr->dropped++;
for (ptr = ph; ptr != NULL; ptr = ptr->next)
if (ptr->latency < 0.0)
ptr->dropped++;
-
+
break;
}
break;
}
@@
-1693,7
+1693,6
@@
int ping_host_add (pingobj_t *obj, const char *host)
}
}
#endif /* AI_CANONNAME */
}
}
#endif /* AI_CANONNAME */
-
} /* for (ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next) */
freeaddrinfo (ai_list);
} /* for (ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next) */
freeaddrinfo (ai_list);
@@
-1754,10
+1753,10
@@
int ping_host_remove (pingobj_t *obj, const char *host)
obj->head = cur->next;
else
pre->next = cur->next;
obj->head = cur->next;
else
pre->next = cur->next;
-
+
target = cur;
pre = NULL;
target = cur;
pre = NULL;
-
+
cur = obj->table[target->ident % PING_TABLE_LEN];
while (cur != NULL)
cur = obj->table[target->ident % PING_TABLE_LEN];
while (cur != NULL)