summaryrefslogtreecommitdiff
path: root/core/opiealarm/opiealarm.c
Side-by-side diff
Diffstat (limited to 'core/opiealarm/opiealarm.c') (more/less context) (show whitespace changes)
-rw-r--r--core/opiealarm/opiealarm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c
index 998cabd..90a743f 100644
--- a/core/opiealarm/opiealarm.c
+++ b/core/opiealarm/opiealarm.c
@@ -93,6 +93,7 @@ int fork_with_pidfile ( void )
perror ( "forking failed" );
return 0;
}
+ // sleep( 60 );
// child process needs to react to SIGUSR2. This is sent when
// a new opiealarm process is started.
@@ -206,7 +207,7 @@ int main ( int argc, char **argv )
int suspend ( int fix_rtc )
{
- FILE *fp;
+ FILE *fp = NULL;
char buf [64];
time_t alrt, syst, rtct;
struct tm alr, sys, rtc;
@@ -258,7 +259,7 @@ int suspend ( int fix_rtc )
break; // ( 1, TIMEFILE );
fclose ( fp );
- fp = 0;
+ fp = NULL;
alrt = atoi ( buf ); // get the alarm time