* main.c (DefaultAlarm): fix initialize value

From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2002-12-18 16:25:47 +00:00
parent becb6e454a
commit 4922417449
2 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
2002-12-19 Fumitoshi UKAI <ukai@debian.or.jp>
* main.c (DefaultAlarm): fix initialize value
2002-12-19 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> 2002-12-19 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03578] meta refresh * [w3m-dev 03578] meta refresh
@@ -5922,4 +5926,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.628 2002/12/18 16:20:49 ukai Exp $ $Id: ChangeLog,v 1.629 2002/12/18 16:25:47 ukai Exp $
+4 -4
View File
@@ -1,4 +1,4 @@
/* $Id: main.c,v 1.171 2002/12/18 16:20:53 ukai Exp $ */ /* $Id: main.c,v 1.172 2002/12/18 16:25:47 ukai Exp $ */
#define MAINPROGRAM #define MAINPROGRAM
#include "fm.h" #include "fm.h"
#include <signal.h> #include <signal.h>
@@ -43,7 +43,7 @@ static int n_event_queue;
#ifdef USE_ALARM #ifdef USE_ALARM
static AlarmEvent DefaultAlarm = { static AlarmEvent DefaultAlarm = {
0, FUNCNAME_nulcmd, NULL, AL_UNSET, 0, AL_UNSET, FUNCNAME_nulcmd, NULL
}; };
static AlarmEvent *CurrentAlarm = &DefaultAlarm; static AlarmEvent *CurrentAlarm = &DefaultAlarm;
static MySignalHandler SigAlarm(SIGNAL_ARG); static MySignalHandler SigAlarm(SIGNAL_ARG);
@@ -5511,7 +5511,7 @@ SigAlarm(SIGNAL_ARG)
#endif #endif
CurrentCmdData = NULL; CurrentCmdData = NULL;
if (CurrentAlarm->status == AL_IMPLICIT_ONCE) { if (CurrentAlarm->status == AL_IMPLICIT_ONCE) {
CurrentAlarm->sec = 0; CurrentAlarm->sec = 0;
CurrentAlarm->status = AL_UNSET; CurrentAlarm->status = AL_UNSET;
} }
if (CurrentAlarm->sec > 0) { if (CurrentAlarm->sec > 0) {
@@ -5555,7 +5555,7 @@ setAlarm(void)
} }
AlarmEvent * AlarmEvent *
setAlarmEvent(AlarmEvent *event, int sec, short status, int cmd, void *data) setAlarmEvent(AlarmEvent * event, int sec, short status, int cmd, void *data)
{ {
if (event == NULL) if (event == NULL)
event = New(AlarmEvent); event = New(AlarmEvent);