summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-19 21:04:35 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-19 21:04:35 +0000
commit4f2bc2345b99c4d0c187aae4f68f4509e50826a5 (patch)
tree7d2c46fe17966171e55ed789cfb09c77c730f0df /input
parent6d6b1e82f0f3c51254417264aa70b417f7ad3e7a (diff)
Rename daemon
Diffstat (limited to 'input')
-rw-r--r--input/Makefile.am6
-rw-r--r--input/main.c10
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;