summaryrefslogtreecommitdiff
path: root/irbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'irbox.c')
-rw-r--r--irbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/irbox.c b/irbox.c
index 54d37d1..bd8b719 100644
--- a/irbox.c
+++ b/irbox.c
@@ -41,6 +41,7 @@
#define DEFAULT_IRBOX_DIR "."
#endif
+static const char* data_dir_name = 0;
static const char* app_name;
static IrState *ir;
@@ -68,7 +69,7 @@ static void
IrHandleHup (int sig)
{
IrResetTables ();
- IrReadTables ("tables"); /* TO BE UPDATED */
+ IrReadTables (data_dir_name);
}
static void
@@ -100,7 +101,6 @@ main (int argc, char *argv[])
const char* dev = DEFAULT_DEVICE;
const char* domains = 0;
static char app_name_buf [1024];
- const char* data_dir_name = 0;
struct sigaction act;
while ((c = getopt(argc, argv, "s:b:n:p:d:")) != EOF)
@@ -144,7 +144,7 @@ main (int argc, char *argv[])
return -1;
/* Let's read tables and provide for their re-reading on SIGHUP */
- IrReadTables ("tables");
+ IrReadTables (data_dir_name);
act.sa_handler = IrHandleHup;
sigemptyset (&act.sa_mask);
act.sa_flags = 0;