diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/Makefile.am | 6 | ||||
-rw-r--r-- | input/main.c | 10 |
2 files changed, 4 insertions, 12 deletions
diff --git a/input/Makefile.am b/input/Makefile.am index cafc03a6..92652711 100644 --- a/input/Makefile.am +++ b/input/Makefile.am @@ -13,11 +13,11 @@ glib_cflags = glib_ldadd = endif -noinst_PROGRAMS = bt.inputd +noinst_PROGRAMS = bluetoothd_input -bt_inputd_SOURCES = main.c input-service.h input-service.c +bluetoothd_input_SOURCES = main.c input-service.h input-service.c -bt_inputd_LDADD = $(glib_ldadd) @DBUS_LIBS@ @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a +bluetoothd_input_LDADD = $(glib_ldadd) @DBUS_LIBS@ @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ $(glib_cflags) diff --git a/input/main.c b/input/main.c index 9386caf9..ad35c32e 100644 --- a/input/main.c +++ b/input/main.c @@ -44,13 +44,6 @@ static GMainLoop *main_loop; -static void usage(void) -{ - printf("bt.inputd - Bluetooth Input daemon ver %s\n", VERSION); - printf("Usage: \n"); - printf("\tbt.inputd [-n not_daemon]\n"); -} - static void sig_term(int sig) { g_main_quit(main_loop); @@ -68,7 +61,6 @@ int main(int argc, char *argv[]) break; default: - usage(); exit(1); } } @@ -78,7 +70,7 @@ int main(int argc, char *argv[]) exit(1); } - start_logging("bt.inputd", "Bluetooth Input daemon"); + start_logging("input", "Bluetooth Input daemon"); memset(&sa, 0, sizeof(sa)); sa.sa_flags = SA_NOCLDSTOP; |