File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ lws_protocol_init_vhost(struct lws_vhost *vh, int *any)
390390 struct lws _lws ;
391391 struct lws_a * lwsa = & _lws .a ;
392392
393- memset (& _lws , 0 , sizeof (_lws ));
393+ memset (( void * ) & _lws , 0 , sizeof (_lws ));
394394#endif
395395
396396 lwsa -> context = vh -> context ;
@@ -1483,7 +1483,7 @@ __lws_vhost_destroy2(struct lws_vhost *vh)
14831483 * let the protocols destroy the per-vhost protocol objects
14841484 */
14851485
1486- memset (& wsi , 0 , sizeof (wsi ));
1486+ memset (( void * ) & wsi , 0 , sizeof (wsi ));
14871487 wsi .a .context = vh -> context ;
14881488 wsi .a .vhost = vh ; /* not a real bound wsi */
14891489 protocol = vh -> protocols ;
Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ lws_create_context(const struct lws_context_creation_info *info)
12111211 context -> pt [n ].fake_wsi = (struct lws * )u ;
12121212 u += sizeof (struct lws );
12131213
1214- memset (context -> pt [n ].fake_wsi , 0 , sizeof (struct lws ));
1214+ memset (( void * ) context -> pt [n ].fake_wsi , 0 , sizeof (struct lws ));
12151215#endif
12161216
12171217 context -> pt [n ].evlib_pt = u ;
@@ -1860,7 +1860,7 @@ lws_pt_destroy(struct lws_context_per_thread *pt)
18601860 ) {
18611861 struct lws wsi ;
18621862
1863- memset (& wsi , 0 , sizeof (wsi ));
1863+ memset (( void * ) & wsi , 0 , sizeof (wsi ));
18641864 wsi .a .context = pt -> context ;
18651865 wsi .tsi = (char )pt -> tid ;
18661866 lws_plat_pipe_close (& wsi );
You can’t perform that action at this time.
0 commit comments