Skip to content

Commit

Permalink
fix nitty gcc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Shafer committed Aug 6, 2013
1 parent 748a0bf commit 1a7fb82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion juise/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ run_server (int fdin, int fdout, session_type_t stype)
js_session_t *jsp;
lx_document_t *rpc;
const char *name;
int rc;

jsp = js_session_open_server(fdin, fdout, stype, 0);
if (jsp == NULL)
Expand All @@ -227,7 +228,10 @@ run_server (int fdin, int fdout, session_type_t stype)
trace(trace_file, TRACE_ALL, "error writing reply: %m");

if (srv_run_script(jsp, name, rpc)) {
(void) write(fdout, rpc_error, sizeof(rpc_error) - 1);
rc = write(fdout, rpc_error, sizeof(rpc_error) - 1);
if (rc < 0)
trace(trace_file, TRACE_ALL, "error writing error: %m");

}
if (write(fdout, rpc_reply_close, sizeof(rpc_reply_close) - 1) < 0)
trace(trace_file, TRACE_ALL, "error writing reply: %m");
Expand Down

0 comments on commit 1a7fb82

Please sign in to comment.