{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745471468,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"02487f4a4848cbc592eb3f18d9190288",
"commit": {"type":"commit",
"time": 1727929668,
"time_ofs": 60,
"oid_tree": { "oid": "bc7ea6d72fc1a37ebbf638851d7f735106ab1a9f", "alias": []},
"oid":{ "oid": "0336ff058e0c8423041bbdd22218e3bbe43a2e24", "alias": []},
"msg": "win: simplify error logging in windows-sockets.c",
"sig_commit": { "git_time": { "time": 1727929668, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1727774115, "offset": 180 }, "name": "Orgad Shaneh", "email": "orgad.shaneh@audiocodes.com", "md5": "80e2bb4e77e8d796898c545820b32f7b" }},
"body": "win: simplify error logging in windows-sockets.c\n"
,
"diff": "diff --git a/lib/plat/windows/windows-sockets.c b/lib/plat/windows/windows-sockets.c\nindex 455a4ac..c3cd541 100644\n--- a/lib/plat/windows/windows-sockets.c\n+++ b/lib/plat/windows/windows-sockets.c\n@@ -81,10 +81,7 @@ lws_plat_set_nonblocking(lws_sockfd_type fd)\n \tint result \u003d !!ioctlsocket(fd, FIONBIO, \u0026optl);\n #if (_LWS_ENABLED_LOGS \u0026 LLL_ERR)\n \tif (result)\n-\t{\n-\t\tint error \u003d LWS_ERRNO;\n-\t\tlwsl_err(\u0022ioctlsocket FIONBIO 1 failed with error %d\u005cn\u0022, error);\n-\t}\n+\t\tlwsl_err(\u0022ioctlsocket FIONBIO 1 failed with error %d\u005cn\u0022, LWS_ERRNO);\n #endif\n \treturn result;\n }\n@@ -108,8 +105,7 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,\n \t\tif (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE,\n \t\t\t (const char *)\u0026optval, optlen) \u003c 0) {\n #if (_LWS_ENABLED_LOGS \u0026 LLL_ERR)\n-\t\t\tint error \u003d LWS_ERRNO;\n-\t\t\tlwsl_err(\u0022setsockopt SO_KEEPALIVE 1 failed with error %d\u005cn\u0022, error);\n+\t\t\tlwsl_err(\u0022setsockopt SO_KEEPALIVE 1 failed with error %d\u005cn\u0022, LWS_ERRNO);\n #endif\n \t\t\treturn 1;\n \t\t}\n@@ -121,8 +117,7 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,\n \t\tif (WSAIoctl(fd, SIO_KEEPALIVE_VALS, \u0026alive, sizeof(alive),\n \t\t\t NULL, 0, \u0026dwBytesRet, NULL, NULL)) {\n #if (_LWS_ENABLED_LOGS \u0026 LLL_ERR)\n-\t\t\tint error \u003d LWS_ERRNO;\n-\t\t\tlwsl_err(\u0022WSAIoctl SIO_KEEPALIVE_VALS 1 %lu %lu failed with error %d\u005cn\u0022, alive.keepalivetime, alive.keepaliveinterval, error);\n+\t\t\tlwsl_err(\u0022WSAIoctl SIO_KEEPALIVE_VALS 1 %lu %lu failed with error %d\u005cn\u0022, alive.keepalivetime, alive.keepaliveinterval, LWS_ERRNO);\n #endif\n \t\t\treturn 1;\n \t\t}\n@@ -134,8 +129,7 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,\n \ttcp_proto \u003d getprotobyname(\u0022TCP\u0022);\n \tif (!tcp_proto) {\n #if (_LWS_ENABLED_LOGS \u0026 LLL_WARN)\n-\t\tint error \u003d LWS_ERRNO;\n-\t\tlwsl_warn(\u0022getprotobyname(\u005c\u0022TCP\u005c\u0022) failed with error, falling back to 6 %d\u005cn\u0022, error);\n+\t\tlwsl_warn(\u0022getprotobyname(\u005c\u0022TCP\u005c\u0022) failed with error, falling back to 6 %d\u005cn\u0022, LWS_ERRNO);\n #endif\n \t\tprotonbr \u003d 6; /* IPPROTO_TCP */\n \t} else\n@@ -146,8 +140,7 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,\n \n \tif (setsockopt(fd, protonbr, TCP_NODELAY, (const char *)\u0026optval, optlen) ) {\n #if (_LWS_ENABLED_LOGS \u0026 LLL_WARN)\n-\t\tint error \u003d LWS_ERRNO;\n-\t\tlwsl_warn(\u0022setsockopt TCP_NODELAY 1 failed with error %d\u005cn\u0022, error);\n+\t\tlwsl_warn(\u0022setsockopt TCP_NODELAY 1 failed with error %d\u005cn\u0022, LWS_ERRNO);\n #endif\n \t}\n \n","s":{"c":1745471468,"u": 7241}}
],"g": 8197,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}