summaryrefslogtreecommitdiff
path: root/core/opiealarm/opiealarm.c
Unidiff
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
@@ -94,4 +94,5 @@ int fork_with_pidfile ( void )
94 return 0; 94 return 0;
95 } 95 }
96 //sleep( 60 );
96 97
97 // child process needs to react to SIGUSR2. This is sent when 98 // child process needs to react to SIGUSR2. This is sent when
@@ -207,5 +208,5 @@ int main ( int argc, char **argv )
207int suspend ( int fix_rtc ) 208int suspend ( int fix_rtc )
208{ 209{
209 FILE *fp; 210 FILE *fp = NULL;
210 char buf [64]; 211 char buf [64];
211 time_t alrt, syst, rtct; 212 time_t alrt, syst, rtct;
@@ -259,5 +260,5 @@ int suspend ( int fix_rtc )
259 260
260 fclose ( fp ); 261 fclose ( fp );
261 fp = 0; 262 fp = NULL;
262 263
263 alrt = atoi ( buf ); // get the alarm time 264 alrt = atoi ( buf ); // get the alarm time