mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-04 12:42:09 +03:00
Fix some gcc warnings
This commit is contained in:
@@ -6808,7 +6808,7 @@ static void read_websocket(struct mg_connection *conn,
|
||||
memcpy(data, buf + header_len, len);
|
||||
error = 0;
|
||||
while (len < data_len) {
|
||||
int n = pull(NULL, conn, data + len, (int)(data_len - len));
|
||||
n = pull(NULL, conn, data + len, (int)(data_len - len));
|
||||
if (n <= 0) {
|
||||
error = 1;
|
||||
break;
|
||||
|
@@ -643,7 +643,7 @@ static void set_absolute_path(char *options[],
|
||||
#include "lauxlib.h"
|
||||
extern void lua_civet_open_all_libs(lua_State *L);
|
||||
|
||||
int run_lua(const char *file_name)
|
||||
static int run_lua(const char *file_name)
|
||||
{
|
||||
struct lua_State *L;
|
||||
int lua_ret;
|
||||
|
@@ -1163,8 +1163,8 @@ static void *lua_allocator(void *ud, void *ptr, size_t osize, size_t nsize) {
|
||||
return mg_realloc(ptr, nsize);
|
||||
}
|
||||
|
||||
void mg_exec_lua_script(struct mg_connection *conn, const char *path,
|
||||
const void **exports) {
|
||||
static void mg_exec_lua_script(struct mg_connection *conn, const char *path,
|
||||
const void **exports) {
|
||||
int i;
|
||||
lua_State *L;
|
||||
|
||||
|
Reference in New Issue
Block a user