Create some directories to hold the source files for the utility
[citadel.git] / citadel / screen.c
index 7a5bdcced0593bcd32d4d2e99d7d7a57e35ded99..a1d8abd7546f0c477d62725f061458e36fc40684 100644 (file)
@@ -33,8 +33,8 @@ static WINDOW *mainwindow = NULL;
 static WINDOW *statuswindow = NULL;
 
 char rc_screen;
-char arg_screen;
 #endif
+char arg_screen;
 
 extern int screenheight;
 extern int screenwidth;
@@ -86,7 +86,7 @@ void status_line(const char *humannode, const char *site_location,
 #if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
 void wait_indicator(int state) {
 
-       if (!isendwin() && statuswindow) {
+       if (statuswindow && !isendwin()) {
 
                mvwinch(statuswindow, 0, screenwidth - 2);
                switch (state) {
@@ -109,6 +109,8 @@ void wait_indicator(int state) {
                wrefresh(mainwindow);   /* this puts the cursor back */
        }
 }
+#else
+void wait_indicator(int state) {}
 #endif