summaryrefslogtreecommitdiff
path: root/core/opiealarm/opiealarm.c
Side-by-side diff
Diffstat (limited to 'core/opiealarm/opiealarm.c') (more/less context) (ignore whitespace changes)
-rw-r--r--core/opiealarm/opiealarm.c7
1 files changed, 4 insertions, 3 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 )
return 0;
}
+ // sleep( 60 );
// child process needs to react to SIGUSR2. This is sent when
@@ -207,5 +208,5 @@ int main ( int argc, char **argv )
int suspend ( int fix_rtc )
{
- FILE *fp;
+ FILE *fp = NULL;
char buf [64];
time_t alrt, syst, rtct;
@@ -259,5 +260,5 @@ int suspend ( int fix_rtc )
fclose ( fp );
- fp = 0;
+ fp = NULL;
alrt = atoi ( buf ); // get the alarm time
@@ -372,5 +373,5 @@ int resume ( int resuspend )
remove_pidfile ( );
- // no need for system() since this process is no longer usefull anyway
+ // no need for system() since this process is no longer usefull anyway
execv ( "/opt/QtPalmtop/bin/qcop", argv );