Fix up code style
authorHamish Coleman <hamish@zot.org>
Tue, 9 May 2017 01:16:29 +0000 (09:16 +0800)
committerHamish Coleman <hamish@zot.org>
Tue, 9 May 2017 01:16:29 +0000 (09:16 +0800)
src/liboping.c
src/oping.c

index 7af4e4a..4626e6d 100644 (file)
@@ -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,
index 47249b5..0b5c44e 100644 (file)
@@ -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;
                }