author | zecke <zecke> | 2004-01-05 14:39:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-01-05 14:39:29 (UTC) |
commit | c127e5d582b1ae4033eca1c8454bee75d510b9e8 (patch) (unidiff) | |
tree | e4f6e610969f35e1e0954f762f317c0e9ccf76b3 /core/opiealarm | |
parent | 7fb9bc93eae8007a6eb298fc743bbf70dc50fbc5 (diff) | |
download | opie-c127e5d582b1ae4033eca1c8454bee75d510b9e8.zip opie-c127e5d582b1ae4033eca1c8454bee75d510b9e8.tar.gz opie-c127e5d582b1ae4033eca1c8454bee75d510b9e8.tar.bz2 |
Spelling fixes by Michael Opdenacker <zumbi2@netcourrier.com>
-rw-r--r-- | core/opiealarm/opiealarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c index 90a743f..422865c 100644 --- a/core/opiealarm/opiealarm.c +++ b/core/opiealarm/opiealarm.c | |||
@@ -351,34 +351,34 @@ int resume ( int resuspend ) | |||
351 | 351 | ||
352 | // sleep <resuspend> seconds - this method is much more precise than sleep() ! | 352 | // sleep <resuspend> seconds - this method is much more precise than sleep() ! |
353 | time ( &start ); | 353 | time ( &start ); |
354 | do { | 354 | do { |
355 | sleep ( 1 ); | 355 | sleep ( 1 ); |
356 | time ( &now ); | 356 | time ( &now ); |
357 | } while (( now - start ) < resuspend ); | 357 | } while (( now - start ) < resuspend ); |
358 | 358 | ||
359 | if ( onac ( )) { // still on ac ? | 359 | if ( onac ( )) { // still on ac ? |
360 | argv[0] = "qcop"; | 360 | argv[0] = "qcop"; |
361 | argv[1] = "QPE/Desktop"; | 361 | argv[1] = "QPE/Desktop"; |
362 | argv[2] = "suspend()"; | 362 | argv[2] = "suspend()"; |
363 | argv[3] = 0; | 363 | argv[3] = 0; |
364 | 364 | ||
365 | // hard coded for now ...but needed | 365 | // hard coded for now ...but needed |
366 | // another way would be to simulate a power-button press | 366 | // another way would be to simulate a power-button press |
367 | 367 | ||
368 | setenv ( "LOGNAME", "root", 1 ); | 368 | setenv ( "LOGNAME", "root", 1 ); |
369 | setenv ( "HOME", "/root", 1 ); | 369 | setenv ( "HOME", "/root", 1 ); |
370 | setenv ( "LD_LIBRARY_PATH", "/opt/QtPalmtop/lib", 1 ); | 370 | setenv ( "LD_LIBRARY_PATH", "/opt/QtPalmtop/lib", 1 ); |
371 | setenv ( "QTDIR", "/opt/QtPalmtop", 1 ); | 371 | setenv ( "QTDIR", "/opt/QtPalmtop", 1 ); |
372 | 372 | ||
373 | remove_pidfile ( ); | 373 | remove_pidfile ( ); |
374 | 374 | ||
375 | // no need for system() since this process is no longer usefull anyway | 375 | // no need for system() since this process is no longer useful anyway |
376 | execv ( "/opt/QtPalmtop/bin/qcop", argv ); | 376 | execv ( "/opt/QtPalmtop/bin/qcop", argv ); |
377 | 377 | ||
378 | perror ( "exec for qcop failed" ); | 378 | perror ( "exec for qcop failed" ); |
379 | return 5; | 379 | return 5; |
380 | } | 380 | } |
381 | } | 381 | } |
382 | } | 382 | } |
383 | return 0; | 383 | return 0; |
384 | } | 384 | } |