mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
silence Clang
This commit is contained in:
1 parent
542f7b6c2f
commit
4f5997a8b4
1 file changed
+2
-2
@@ -41,7 +41,7 @@ static volatile bool s_tx_held, s_tx_waits;
|
|||||||
|
|
||||||
static int open_udp(void) {
|
static int open_udp(void) {
|
||||||
struct sockaddr_in sa;
|
struct sockaddr_in sa;
|
||||||
char buf;
|
char buf = 0;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
@@ -264,7 +264,7 @@ static void check_client(int status) {
|
|||||||
static int open_listener(int backlog, bool nonblock) {
|
static int open_listener(int backlog, bool nonblock) {
|
||||||
int lfd = socket(AF_INET, SOCK_STREAM, 0);
|
int lfd = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
struct sockaddr_in sa;
|
struct sockaddr_in sa;
|
||||||
char buf;
|
char buf = 0;
|
||||||
|
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
sa.sin_family = AF_INET;
|
sa.sin_family = AF_INET;
|
||||||
|
|||||||
Reference in new issue
Block a user