- switch (event) {
- case GSOCK_CONNECTION:
- case GSOCK_LOST:
- case GSOCK_INPUT: c = 0; flag = GDK_INPUT_READ; break;
- case GSOCK_OUTPUT: c = 1;flag = GDK_INPUT_WRITE; break;
- default: return;
+ switch (event)
+ {
+ case GSOCK_LOST: /* fall-through */
+ case GSOCK_INPUT: c = 0; break;
+ case GSOCK_OUTPUT: c = 1; break;
+ case GSOCK_CONNECTION: c = ((socket->m_server) ? 0 : 1); break;
+ default: return;