aboutsummaryrefslogtreecommitdiff
path: root/graphics/klatexformula/files/patch-src-main.cpp
blob: 6bdb562a2116fd8d0744f0199a1a267c7359b9ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/main.cpp.orig	2017-02-07 07:22:42 UTC
+++ src/main.cpp
@@ -272,8 +272,8 @@ void signal_act(int sig)
     fprintf(ftty, "Interrupt\n");
     if (ftty != stderr)  fprintf(stderr, "*** Interrupt\n");
 
-    static long last_sigint_time = 0;
-    long curtime;
+    static time_t last_sigint_time = 0;
+    time_t curtime;
     time(&curtime);
     bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
     if (!isInsisted && qApp != NULL) {