fix prototype of signal handler functions (sun studio doesn't like these wrong)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2949 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-10-02 16:48:00 +00:00
parent 6797158b61
commit af06084f43
2 changed files with 13 additions and 13 deletions

View File

@@ -51,12 +51,12 @@ static char *pfile = PIDFILE;
static HANDLE shutdown_event;
#endif
static int handle_SIGHUP(int sig)
static void handle_SIGHUP(int sig)
{
uint32_t arg = 0;
if(sig);
switch_core_session_ctl(SCSC_SHUTDOWN, &arg);
return 0;
return;
}
@@ -228,8 +228,8 @@ int main(int argc, char *argv[])
if (bg) {
ppath = lfile;
signal(SIGHUP, (void *) handle_SIGHUP);
signal(SIGTERM, (void *) handle_SIGHUP);
signal(SIGHUP, handle_SIGHUP);
signal(SIGTERM, handle_SIGHUP);
#ifdef WIN32
FreeConsole();