diff options
author | chatty | 1999-01-25 18:11:38 +0000 |
---|---|---|
committer | chatty | 1999-01-25 18:11:38 +0000 |
commit | ee2d63ae98ba430f9831e21f650f00c0e38502b8 (patch) | |
tree | 79a13ac5a1481ec9a8024e5c88cc5803c040aa0f /irbox.c | |
parent | dccdfba1ce1748c085d71f228697fbfbeb01edaf (diff) | |
download | irbox-ee2d63ae98ba430f9831e21f650f00c0e38502b8.zip irbox-ee2d63ae98ba430f9831e21f650f00c0e38502b8.tar.gz irbox-ee2d63ae98ba430f9831e21f650f00c0e38502b8.tar.bz2 irbox-ee2d63ae98ba430f9831e21f650f00c0e38502b8.tar.xz |
Option -p was badly handled !
Diffstat (limited to 'irbox.c')
-rw-r--r-- | irbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |