mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
fix missing close brace
This commit is contained in:
parent
c985853cbf
commit
d82a38dfd6
@ -230,13 +230,14 @@ switch_status_t modem_init(modem_t *modem, modem_control_handler_t control_handl
|
|||||||
#if USE_OPENPTY
|
#if USE_OPENPTY
|
||||||
if (openpty(&modem->master, &modem->slave, NULL, NULL, NULL)) {
|
if (openpty(&modem->master, &modem->slave, NULL, NULL, NULL)) {
|
||||||
|
|
||||||
if (modem->master < 0) {
|
if (modem->master < 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Fatal error: failed to initialize pty\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Fatal error: failed to initialize pty\n");
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
modem->stty = ttyname(modem->slave);
|
modem->stty = ttyname(modem->slave);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
#if WIN32
|
#if WIN32
|
||||||
modem->slot = 4+globals.NEXT_ID++; /* need work here we start at COM4 for now*/
|
modem->slot = 4+globals.NEXT_ID++; /* need work here we start at COM4 for now*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user