minor optimization
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 1 Sep 2005 18:45:36 +0000 (18:45 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 1 Sep 2005 18:45:36 +0000 (18:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6482 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_externalivr.c

index 4bfa62b..59fc953 100755 (executable)
@@ -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);
 }