From kde-commits Tue Apr 05 20:31:13 2005 From: Adriaan de Groot Date: Tue, 05 Apr 2005 20:31:13 +0000 To: kde-commits Subject: kdeutils/klaptopdaemon Message-Id: <20050405203113.064EC492 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111273308429149 CVS commit by adridg: Use NULL, not 0, since (a) this is C (b) NULL is a pointer of the right size, for 64-bit correctness; remove spurious /bin/sh invocation. M +1 -1 acpi_helper.cpp 1.15 --- kdeutils/klaptopdaemon/acpi_helper.cpp #1.14:1.15 @@ -114,5 +114,5 @@ main(int argc, char **argv) } ::setuid(::geteuid()); // otherwise bash will throw it away - ::execl("/bin/sh", "-c", "/usr/sbin/hibernate", 0); // this is not KDE environment code + ::execl("/usr/sbin/hibernate", NULL); // this is not KDE environment code exit(0); } else