mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1545 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
|
||||
char *pfile = "freeswitch.pid";
|
||||
char path[256] = "";
|
||||
char *ppath = NULL;
|
||||
char *err = NULL;
|
||||
const char *err = NULL;
|
||||
switch_event_t *event;
|
||||
int bg = 0;
|
||||
FILE *f;
|
||||
@@ -124,8 +124,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
if (switch_core_init(ppath) != SWITCH_STATUS_SUCCESS) {
|
||||
fprintf(stderr, "Cannot Initilize\n");
|
||||
if (switch_core_init(ppath, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
fprintf(stderr, "Cannot Initilize [%s]\n", err);
|
||||
return 255;
|
||||
}
|
||||
|
||||
@@ -156,8 +156,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
fprintf(f, "%d", getpid());
|
||||
fclose(f);
|
||||
|
||||
|
||||
|
||||
if (!err) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Bringing up environment.\n");
|
||||
|
Reference in New Issue
Block a user