From 787efb9b1638a89fe5e4e698f4df43468d6d327e Mon Sep 17 00:00:00 2001 From: damiano Date: Wed, 17 Feb 1999 11:28:36 +0000 Subject: remove argument bus from function IvyInit --- src/ivy.c | 7 ++----- src/ivy.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/ivy.c b/src/ivy.c index 6aab573..2873585 100644 --- a/src/ivy.c +++ b/src/ivy.c @@ -542,7 +542,7 @@ static void BroadcastReceive( Client client, void *data, char *line ) } -void IvyInit (const char *appname, unsigned short port, const char *ready, +void IvyInit (const char *appname, const char *ready, IvyApplicationCallback callback, void *data, IvyDieCallback die_callback, void *die_data ) @@ -550,7 +550,6 @@ void IvyInit (const char *appname, unsigned short port, const char *ready, SocketInit(); ApplicationName = appname; - SupervisionPort = port; application_callback = callback; application_user_data = data; application_die_callback = die_callback; @@ -600,10 +599,8 @@ void IvyStart (const char* bus) q = strchr (p, ':'); if (q && (port = atoi (q+1))) SupervisionPort = port; -#if 0 else - SupervisionPort = ; -#endif + SupervisionPort = DEFAULT_BUS; /* * Now we have a port number it's time to initialize the UDP port diff --git a/src/ivy.h b/src/ivy.h index ed0ea95..89605de 100644 --- a/src/ivy.h +++ b/src/ivy.h @@ -52,7 +52,6 @@ void IvyClasses( int argc, const char **argv); void IvyInit( const char *AppName, /* nom de l'application */ - unsigned short busnumber, /* numero de bus ( port UDP ) */ const char *ready, /* ready Message peut etre NULL */ IvyApplicationCallback callback, /* callback appele sur connection deconnection d'une appli */ void *data, /* user data passe au callback */ -- cgit v1.1