[Pkg-telepathy-commits] [libnice] 63/265: socket: Add missing switch cases
Simon McVittie
smcv at debian.org
Wed May 14 12:04:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 56c5dced7bebcf4400a9c205efe18f1d1a923540
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date: Tue Dec 17 09:43:49 2013 +0000
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.
---
socket/http.c | 1 +
socket/socks5.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/socket/http.c b/socket/http.c
index eaea4b6..f731253 100644
--- a/socket/http.c
+++ b/socket/http.c
@@ -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;
diff --git a/socket/socks5.c b/socket/socks5.c
index b61324a..0fb31c2 100644
--- a/socket/socks5.c
+++ b/socket/socks5.c
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list