fix dlen
[citadel.git] / textclient / screen.c
index eac342f4b0352cc25b42f6500959dbf4918fde80..30cf3d9bbc7b6df712966a5abae70b4386f53555 100644 (file)
@@ -2,13 +2,7 @@
 //
 // Copyright (c) 1987-2021 by the citadel.org team
 //
-// This program is open source software.  Use, duplication, and/or
-// disclosure are subject to the GNU General Purpose License version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
+// This program is open source software.  Use, duplication, or disclosure is subject to the GNU General Public License version 3.
 
 #include "textclient.h"
 
@@ -208,7 +202,7 @@ static volatile int caught_sigwinch = 0;
  * scr_winch() handles window size changes from SIGWINCH
  * resizes all our windows for us
  */
-sighandler_t scr_winch(int signum) {
+void scr_winch(int signum) {
        /* if we receive this signal, we must be running
         * in a terminal that supports resizing.
         */
@@ -230,16 +224,16 @@ void scr_wait_indicator(int state) {
        if (screenwidth > 0) {
                switch (state) {
                default:
-               case 0: /* Idle */
+               case 0: // Idle
                        status_line[sp] = ' ';
                        break;
-               case 1: /* Waiting */
+               case 1: // Waiting
                        status_line[sp] = 'X';
                        break;
-               case 2: /* Receiving */
+               case 2: // Receiving
                        status_line[sp] = '<';
                        break;
-               case 3: /* Sending */
+               case 3: // Sending
                        status_line[sp] = '>';
                        break;
                }