From ee2d63ae98ba430f9831e21f650f00c0e38502b8 Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 25 Jan 1999 18:11:38 +0000 Subject: Option -p was badly handled ! --- irbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'irbox.c') 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; -- cgit v1.1