Branch prediction optimizations.
[silc.git] / lib / silcutil / silcfdstream.c
index c614811dbc0c02f5ae86dfc571f00c587ac15c05..e7a469048ad31cb96c4f413c742913ad43933c54 100644 (file)
@@ -49,14 +49,14 @@ SILC_TASK_CALLBACK(silc_fd_stream_io)
     return;
 
   switch (type) {
-  case SILC_TASK_WRITE:
-    stream->notifier(stream, SILC_STREAM_CAN_WRITE, stream->notifier_context);
-    break;
-
   case SILC_TASK_READ:
     stream->notifier(stream, SILC_STREAM_CAN_READ, stream->notifier_context);
     break;
 
+  case SILC_TASK_WRITE:
+    stream->notifier(stream, SILC_STREAM_CAN_WRITE, stream->notifier_context);
+    break;
+
   default:
     break;
   }