X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=textclient%2Fscreen.c;h=70f2b1f65b02384c91f1d27694ca84ab01d31946;hb=HEAD;hp=eac342f4b0352cc25b42f6500959dbf4918fde80;hpb=633eabfc5820a6cc3b3c45793243928d0fa9c099;p=citadel.git diff --git a/textclient/screen.c b/textclient/screen.c index eac342f4b..30cf3d9bb 100644 --- a/textclient/screen.c +++ b/textclient/screen.c @@ -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; }