Cosmetic fix when pressing 's' in tincctl top.
[tinc] / src / top.c
index 5ca9749..f4e7303 100644 (file)
--- a/src/top.c
+++ b/src/top.c
@@ -128,7 +128,7 @@ static void update(int fd) {
        }
 }
 
-static void redraw() {
+static void redraw(void) {
        erase();
 
        mvprintw(0, 0, "Tinc %-16s  Nodes: %4d  Sort: %-8s  %s", netname, node_list.count, sortname[sortmode], cumulative ? "Cumulative" : "Current");
@@ -237,7 +237,7 @@ void top(int fd) {
                        case 's': {
                                timeout(-1);
                                float input = delay * 1e-3;
-                               printw("Change delay from %.1fs to: ", input);
+                               mvprintw(1, 0, "Change delay from %.1fs to: ", input);
                                scanw("%f", &input);
                                if(input < 0.1)
                                        input = 0.1;