fix func prototype to be void and use proper compile defined dirs paths

This commit is contained in:
Carsten Haitzler 2013-09-04 12:00:08 +09:00
parent 4d4cdc967c
commit 688276f325
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ AM_CPPFLAGS = \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-DSYSTEM_CONFIG_DIR=\"$(sysconfdir)\" \
-DPACKAGE_BIN_DIR=\"$(libdir)/$(PACKAGE)\" \
-DPACKAGE_SBIN_DIR=\"$(sbindir)/\" \
@ENTRANCE_CFLAGS@
if HAVE_CONSOLEKIT

View File

@ -135,9 +135,10 @@ entrance_close_log()
}
static void
_entrance_wait()
_entrance_wait(void)
{
execl(PACKAGE_BIN_DIR"/entrance_wait", "/usr/sbin/entrance", NULL);
// XXX: use eina_prefix! hardcoding paths . :(
execl(PACKAGE_BIN_DIR"/entrance_wait", PACKAGE_SBIN_DIR"/entrance", NULL);
PT("HUM HUM HUM can't wait ...\n\n\n");
_exit(1);
}