mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
Squashed warnings
This commit is contained in:
parent
0d40364089
commit
5bb361b1d2
@ -344,10 +344,9 @@ static void lsp_send_err(struct mg_connection *conn, struct lua_State *L,
|
|||||||
const char *fmt, ...) {
|
const char *fmt, ...) {
|
||||||
char buf[MG_BUF_LEN];
|
char buf[MG_BUF_LEN];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int len;
|
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
len = vsnprintf(buf, sizeof(buf), fmt, ap);
|
vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
if (L == NULL) {
|
if (L == NULL) {
|
||||||
|
@ -4552,7 +4552,8 @@ static int is_valid_port(unsigned int port) {
|
|||||||
// Examples: 80, 443s, 127.0.0.1:3128, 1.2.3.4:8080s
|
// Examples: 80, 443s, 127.0.0.1:3128, 1.2.3.4:8080s
|
||||||
// TODO(lsm): add parsing of the IPv6 address
|
// TODO(lsm): add parsing of the IPv6 address
|
||||||
static int parse_port_string(const struct vec *vec, struct socket *so) {
|
static int parse_port_string(const struct vec *vec, struct socket *so) {
|
||||||
unsigned int a, b, c, d, ch, len, port;
|
unsigned int a, b, c, d, ch, port;
|
||||||
|
int len;
|
||||||
#if defined(USE_IPV6)
|
#if defined(USE_IPV6)
|
||||||
char buf[100];
|
char buf[100];
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user