summaryrefslogtreecommitdiff
path: root/src/irbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irbox.c')
-rw-r--r--src/irbox.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/irbox.c b/src/irbox.c
index bd8b719..153a4bf 100644
--- a/src/irbox.c
+++ b/src/irbox.c
@@ -88,7 +88,7 @@ IrEventCb (IrState *ir, const unsigned char* code)
static void
IrFailCb (IrState* ir)
{
- fprintf(stderr,"IR box not responding.\n");
+ fprintf (stderr,"IR box not responding.\n");
IvySendMsg ("%s Failed", app_name);
IvyStop ();
}
@@ -96,23 +96,19 @@ IrFailCb (IrState* ir)
int
main (int argc, char *argv[])
{
- unsigned short bport = DEFAULT_BUS;
int c;
const char* dev = DEFAULT_DEVICE;
- const char* domains = 0;
+ const char* bus = 0;
static char app_name_buf [1024];
struct sigaction act;
while ((c = getopt(argc, argv, "s:b:n:p:d:")) != EOF)
switch (c) {
- case 'b':
- bport = atoi(optarg) ;
- break;
case 's':
dev = optarg;
break;
- case 'd':
- domains = optarg;
+ case 'b':
+ bus = optarg;
break;
case 'n':
app_name = optarg;
@@ -151,10 +147,10 @@ main (int argc, char *argv[])
sigaction (1, &act, 0);
- IvyInit (app_name, bport, 0, 0, 0, 0, 0);
+ IvyInit (app_name, 0, 0, 0, 0, 0);
IvyChannelSetUp (IrGetFd (ir), ir, 0, HandleChannel);
- IvyStart (domains);
+ IvyStart (bus);
IvyMainLoop (0);
return 0 ;