mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
minor optimization
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -85,7 +85,8 @@ static void send_child_event(FILE *handle, const char event, const char *data,
|
|||||||
snprintf(tmp, sizeof(tmp), "%c,%10ld,%s", event, time(NULL), data);
|
snprintf(tmp, sizeof(tmp), "%c,%10ld,%s", event, time(NULL), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(handle, "%s\n", tmp);
|
fputs(tmp, handle);
|
||||||
|
fputc('\n', handle);
|
||||||
ast_chan_log(LOG_DEBUG, chan, "sent '%s'\n", tmp);
|
ast_chan_log(LOG_DEBUG, chan, "sent '%s'\n", tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user