summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6b8446)
raw | patch | inline | side by side (parent: c6b8446)
author | Hamish Coleman <hamish@zot.org> | |
Tue, 9 May 2017 01:16:29 +0000 (09:16 +0800) | ||
committer | Hamish Coleman <hamish@zot.org> | |
Tue, 9 May 2017 01:16:29 +0000 (09:16 +0800) |
src/liboping.c | patch | blob | history | |
src/oping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 7af4e4a239ee17bf28828f2124bd52afc6a8772d..4626e6d26e55710ca89c8fee94dc0106184c9e69 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
if (obj == NULL)
return 0;
- int count = 0;
- pingobj_iter_t *iter = obj->head;
- while(iter) {
- count++;
- iter = iter->next;
- }
- return count;
+ int count = 0;
+ pingobj_iter_t *iter = obj->head;
+ while (iter) {
+ count++;
+ iter = iter->next;
+ }
+ return count;
}
int ping_iterator_get_info (pingobj_iter_t *iter, int info,
diff --git a/src/oping.c b/src/oping.c
index 47249b54321ef0946d18fcab4fbae531b7081d80..0b5c44e223d6ac902d963f0e6dbe18fe0dcef815 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
if (context->window != NULL)
{
- werase (context->window);
- wrefresh (context->window);
+ werase (context->window);
+ wrefresh (context->window);
delwin (context->window);
context->window = NULL;
}