Skip to content

Commit

Permalink
Removed 2 unused warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasff committed Aug 1, 2011
1 parent 12c67f6 commit e35374c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ http_response_write(struct http_response *r, int fd) {
r->out = calloc(r->out_sz + 1, 1);

ret = sprintf(r->out, "HTTP/1.%d %d %s\r\n", (r->http_version?1:0), r->code, r->msg);
(void)ret;
p = r->out;

if(r->code == 200 && r->body) {
Expand Down
1 change: 1 addition & 0 deletions websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ ws_handshake_reply(struct http_client *c) {
memcpy(p, &md5_handshake[0], sizeof(md5_handshake));

ret = write(c->fd, buffer, sz);
(void)ret;
free(buffer);

return 0;
Expand Down

0 comments on commit e35374c

Please sign in to comment.