X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fgeneric-main.c;h=cafd23a5778258db070b8b612889e2db4681c1a0;hp=365034ceea3c402d1870e33fa627d80c9fcb4539;hb=f1599796efed1eb67759cf42f47fe4bf6a9bf93c;hpb=ad781c2aaed011dc704a018b53dcb43e5d90fd85 diff --git a/ui/ncurses/generic-main.c b/ui/ncurses/generic-main.c index 365034c..cafd23a 100644 --- a/ui/ncurses/generic-main.c +++ b/ui/ncurses/generic-main.c @@ -18,11 +18,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#if defined(HAVE_CONFIG_H) #include "config.h" -#endif #define _GNU_SOURCE + +#include #include #include #include @@ -180,10 +180,6 @@ static void sig_handler(int signum) DBGS("%d\n", signum); switch (signum) { - case SIGALRM: - if (pb.cui) - ui_timer_sigalrm(&pb.cui->timer); - break; case SIGWINCH: if (pb.cui) cui_resize(pb.cui); @@ -263,7 +259,6 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; pb.mm = pb_mm_init(&pb); - ui_timer_disable(&pb.cui->timer); cui_result = cui_run(pb.cui, pb.mm, 0);