aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-08-14 08:33:12 +1000
committerDavid Walter Seikel2014-08-14 08:33:12 +1000
commit80630d48e70f61dc09c8bd0af7fcc222478aa738 (patch)
tree4258249469a5fc415219b444f6d266c050787532 /src
parentOnly collect the errors and warnings during a compile, output them in a batch... (diff)
downloadSledjHamr-80630d48e70f61dc09c8bd0af7fcc222478aa738.zip
SledjHamr-80630d48e70f61dc09c8bd0af7fcc222478aa738.tar.gz
SledjHamr-80630d48e70f61dc09c8bd0af7fcc222478aa738.tar.bz2
SledjHamr-80630d48e70f61dc09c8bd0af7fcc222478aa738.tar.xz
Optimise message sending.
Diffstat (limited to 'src')
-rw-r--r--src/libraries/SledjHamr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libraries/SledjHamr.c b/src/libraries/SledjHamr.c
index 5b1cfd5..871b294 100644
--- a/src/libraries/SledjHamr.c
+++ b/src/libraries/SledjHamr.c
@@ -122,8 +122,8 @@ void sendBack(Ecore_Con_Client *client, const char *SID, const char *message, ..
122 length += vsprintf(&buf[length], message, args); 122 length += vsprintf(&buf[length], message, args);
123 va_end(args); 123 va_end(args);
124 buf[length++] = '\n'; 124 buf[length++] = '\n';
125 buf[length++] = '\0'; 125 buf[length] = '\0';
126 ecore_con_client_send(client, buf, strlen(buf)); 126 ecore_con_client_send(client, buf, length);
127 ecore_con_client_flush(client); 127 ecore_con_client_flush(client);
128} 128}
129 129
@@ -139,7 +139,7 @@ void sendForth(Ecore_Con_Server *server, const char *SID, const char *message, .
139 length += vsprintf(&buf[length], message, args); 139 length += vsprintf(&buf[length], message, args);
140 va_end(args); 140 va_end(args);
141 buf[length++] = '\n'; 141 buf[length++] = '\n';
142 buf[length++] = '\0'; 142 buf[length] = '\0';
143 ecore_con_server_send(server, buf, strlen(buf)); 143 ecore_con_server_send(server, buf, length);
144 ecore_con_server_flush(server); 144 ecore_con_server_flush(server);
145} 145}