mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-07 06:10:28 +00:00
Make NoZeroConf option work with Howl
This commit is contained in:
parent
1dca082fc6
commit
28bbd7e27a
@ -107,6 +107,12 @@ GLOBAL void Rendezvous_Init( void )
|
|||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < MAX_RENDEZVOUS; i++)
|
||||||
|
My_Rendezvous[i].Desc[0] = '\0';
|
||||||
|
|
||||||
|
if (!Conf_ZeroConf)
|
||||||
|
return;
|
||||||
|
|
||||||
#ifdef HOWL
|
#ifdef HOWL
|
||||||
if( sw_discovery_init( &My_Discovery_Session ) != SW_OKAY )
|
if( sw_discovery_init( &My_Discovery_Session ) != SW_OKAY )
|
||||||
{
|
{
|
||||||
@ -122,8 +128,6 @@ GLOBAL void Rendezvous_Init( void )
|
|||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for( i = 0; i < MAX_RENDEZVOUS; i++ ) My_Rendezvous[i].Desc[0] = '\0';
|
|
||||||
} /* Rendezvous_Init */
|
} /* Rendezvous_Init */
|
||||||
|
|
||||||
|
|
||||||
@ -238,6 +242,9 @@ GLOBAL void Rendezvous_Handler( void )
|
|||||||
/* Handle all Rendezvous stuff; this function must be called
|
/* Handle all Rendezvous stuff; this function must be called
|
||||||
* periodically from the run loop of the main program */
|
* periodically from the run loop of the main program */
|
||||||
|
|
||||||
|
if (!Conf_ZeroConf)
|
||||||
|
return;
|
||||||
|
|
||||||
#ifdef APPLE
|
#ifdef APPLE
|
||||||
int i;
|
int i;
|
||||||
char buffer[MAX_MACH_MSG_SIZE];
|
char buffer[MAX_MACH_MSG_SIZE];
|
||||||
|
Loading…
Reference in New Issue
Block a user