// 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.
+// disclosure is 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
* 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.
*/
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;
}