Skip to content

Commit

Permalink
pi_http: fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiusas committed Mar 18, 2015
1 parent 75c8154 commit b7e2137
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/pi_http/http_fnc.c
Expand Up @@ -400,7 +400,7 @@ static const str PI_HTTP_Response_Foot = str_init(\
"\n</center>\n<div align=\"center\" class=\"foot\" style=\"margin:20px auto\">"\
"<span style='margin-left:5px;'></span>"\
"<a href=\"http://opensips.org\">OpenSIPS web site</a><br/>"\
"Copyright &copy; 2012-2014 <a href=\"http://www.voipembedded.com/\">VoIP Embedded, Inc.</a>"\
"Copyright &copy; 2012-2015 <a href=\"http://www.voipembedded.com/\">VoIP Embedded, Inc.</a>"\
". All rights reserved."\
"</div></body></html>");

Expand Down
6 changes: 3 additions & 3 deletions modules/pi_http/pi_http.c
Expand Up @@ -42,7 +42,7 @@ extern ph_framework_t *ph_framework_data;
/* module functions */
static int mod_init();
static int destroy(void);
void ph_answer_to_connection (void *cls, void *connection,
int ph_answer_to_connection (void *cls, void *connection,
const char *url, const char *method,
const char *version, const char *upload_data,
size_t *upload_data_size, void **con_cls,
Expand Down Expand Up @@ -209,7 +209,7 @@ static ssize_t ph_flush_data(void *cls, uint64_t pos, char *buf, size_t max)
}


void ph_answer_to_connection (void *cls, void *connection,
int ph_answer_to_connection (void *cls, void *connection,
const char *url, const char *method,
const char *version, const char *upload_data,
size_t *upload_data_size, void **con_cls,
Expand Down Expand Up @@ -242,7 +242,7 @@ void ph_answer_to_connection (void *cls, void *connection,
*page = PI_HTTP_U_METHOD;
}

return;
return 0;
}


Expand Down

0 comments on commit b7e2137

Please sign in to comment.