projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2054161
)
Fix LWS_NO_SERVER build.
36/3136/1
author
Joakim Soderberg
<joakim.soderberg@gmail.com>
Fri, 22 Feb 2013 01:27:59 +0000
(09:27 +0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:38 +0000
(13:01 -0800)
"int n" was used also when server parts are not compiled, so don't put it inside the LWS_NO_SERVER ifdef.
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
a4d352c
..
80a4ce0
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-1626,8
+1626,8
@@
libwebsocket_create_context(struct lws_context_creation_info *info)
{
struct libwebsocket_context *context = NULL;
char *p;
-#ifndef LWS_NO_SERVER
int n;
+#ifndef LWS_NO_SERVER
int opt = 1;
struct libwebsocket *wsi;
struct sockaddr_in serv_addr;