From: Hamish Coleman Date: Tue, 9 May 2017 01:16:29 +0000 (+0800) Subject: Fix up code style X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8fe50ddb4a18b033f8ea63ef36393ef8b1033f64;p=liboping.git Fix up code style --- diff --git a/src/liboping.c b/src/liboping.c index 7af4e4a..4626e6d 100644 --- a/src/liboping.c +++ b/src/liboping.c @@ -1727,13 +1727,13 @@ int ping_iterator_count (pingobj_t *obj) 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 47249b5..0b5c44e 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1324,8 +1324,8 @@ static int on_resize (pingobj_t *ping) /* {{{ */ if (context->window != NULL) { - werase (context->window); - wrefresh (context->window); + werase (context->window); + wrefresh (context->window); delwin (context->window); context->window = NULL; }