summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsc1999-02-18 16:15:55 +0000
committersc1999-02-18 16:15:55 +0000
commit94e60af5c4e5b97d73150289de3a9a3a1ffdc55a (patch)
treeb73d063b9e76ec06d473e20983bd974dcf761b44
parent1bb64154c2d93eb13ae1ac0b3f7ecf26f0b286aa (diff)
downloadirbox-94e60af5c4e5b97d73150289de3a9a3a1ffdc55a.zip
irbox-94e60af5c4e5b97d73150289de3a9a3a1ffdc55a.tar.gz
irbox-94e60af5c4e5b97d73150289de3a9a3a1ffdc55a.tar.bz2
irbox-94e60af5c4e5b97d73150289de3a9a3a1ffdc55a.tar.xz
Now compatible with ivy-c 3.0
-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 ;