Skip to content

Commit cae6118

Browse files
committed
Tweak comments to use /* .. */ style
1 parent 1115570 commit cae6118

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/base/ctrl_socket.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,20 +309,20 @@ static void xdebug_control_socket_handle(void)
309309
int bytes_read;
310310

311311
if (XG_BASE(control_socket_h) <= 0) {
312-
// no NP
312+
/* No Named Pipe */
313313
return;
314314
}
315315

316316
if (ConnectNamedPipe(XG_BASE(control_socket_h), NULL)) {
317-
// previous disconnect
317+
/* Previous disconnect */
318318
DisconnectNamedPipe(XG_BASE(control_socket_h));
319319
return;
320320
}
321321

322322
result = GetLastError();
323323

324324
if (result == ERROR_PIPE_LISTENING) {
325-
// no clients
325+
/* No clients */
326326
return;
327327
}
328328

@@ -332,7 +332,7 @@ static void xdebug_control_socket_handle(void)
332332
}
333333

334334
if (result == ERROR_PIPE_CONNECTED) {
335-
// got new client!
335+
/* Got new client */
336336
DWORD lpMode;
337337
lpMode = PIPE_TYPE_BYTE | PIPE_WAIT;
338338
if (!SetNamedPipeHandleState(XG_BASE(control_socket_h), &lpMode, NULL, NULL)) {
@@ -361,7 +361,7 @@ static void xdebug_control_socket_handle(void)
361361
}
362362
}
363363

364-
// All other errors and completed reading should close the socket
364+
/* All other errors and completed reading should close the socket */
365365
DisconnectNamedPipe(XG_BASE(control_socket_h));
366366
}
367367
#endif

0 commit comments

Comments
 (0)