Commit 56c5dced authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

socket: Add missing switch cases

This appeases GCC’s -Wswitch-enum warning, and makes it more obvious
that those enum cases have been explicitly considered, rather than just
forgotten about.

This introduces no functional changes.
parent f534d360
......@@ -341,6 +341,7 @@ socket_recv (NiceSocket *sock, NiceAddress *from, guint len, gchar *buf)
return recv_len;
}
break;
case HTTP_STATE_ERROR:
default:
/* Unknown status */
goto error;
......
......@@ -332,6 +332,7 @@ socket_recv (NiceSocket *sock, NiceAddress *from, guint buf_len, gchar *buf)
}
}
break;
case SOCKS_STATE_ERROR:
default:
/* Unknown status */
goto error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment