Skip to content

Commit 5f51da8

Browse files
author
Sascha Schumann
committed
Remove bogus use of volatile and add a note about using inet_ntop
instead.
1 parent 69abb74 commit 5f51da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/sockets/sockets.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ zend_module_entry sockets_module_entry = {
164164
ZEND_GET_MODULE(sockets)
165165
#endif
166166

167-
/* this should be mutex'ed */
168-
volatile int inet_ntoa_lock = 0;
167+
/* inet_ntop should be used instead of inet_ntoa */
168+
int inet_ntoa_lock = 0;
169169

170170
static void destroy_fd_sets(zend_rsrc_list_entry *rsrc)
171171
{

0 commit comments

Comments
 (0)