[git commit master 1/1] sunrpc: fix spurious fall-through

Bernd Schmidt bernds at codesourcery.com
Wed Mar 9 14:35:44 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=cb96f5c1b34a36864b0da389599b95408cc9b4a2
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Fix spurious fall-through.

Signed-off-by: Mark Salter <msalter at redhat.com>
Signed-off-by: Bernd Schmidt <bernds at codesourcery.com>
---
 libc/inet/rpc/clnt_tcp.c  |    1 +
 libc/inet/rpc/clnt_udp.c  |    1 +
 libc/inet/rpc/clnt_unix.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libc/inet/rpc/clnt_tcp.c b/libc/inet/rpc/clnt_tcp.c
index d01fc80..d8d7bb3 100644
--- a/libc/inet/rpc/clnt_tcp.c
+++ b/libc/inet/rpc/clnt_tcp.c
@@ -402,6 +402,7 @@ clnttcp_control (CLIENT *cl, int request, char *info)
       /* This will set the xid of the NEXT call */
       *(u_long *)ct->ct_mcall =  htonl (*(u_long *)info - 1);
       /* decrement by 1 as clnttcp_call() increments once */
+      break;
     case CLGET_VERS:
       /*
        * This RELIES on the information that, in the call body,
diff --git a/libc/inet/rpc/clnt_udp.c b/libc/inet/rpc/clnt_udp.c
index fe8b7f8..aca3e33 100644
--- a/libc/inet/rpc/clnt_udp.c
+++ b/libc/inet/rpc/clnt_udp.c
@@ -554,6 +554,7 @@ clntudp_control (CLIENT *cl, int request, char *info)
       /* This will set the xid of the NEXT call */
       *(u_long *)cu->cu_outbuf =  htonl(*(u_long *)info - 1);
       /* decrement by 1 as clntudp_call() increments once */
+      break;
     case CLGET_VERS:
       /*
        * This RELIES on the information that, in the call body,
diff --git a/libc/inet/rpc/clnt_unix.c b/libc/inet/rpc/clnt_unix.c
index c7756f7..9870149 100644
--- a/libc/inet/rpc/clnt_unix.c
+++ b/libc/inet/rpc/clnt_unix.c
@@ -377,6 +377,7 @@ clntunix_control (CLIENT *cl, int request, char *info)
       /* This will set the xid of the NEXT call */
       *(u_long *) ct->ct_mcall =  htonl (*(u_long *)info - 1);
       /* decrement by 1 as clntunix_call() increments once */
+      break;
     case CLGET_VERS:
       /*
        * This RELIES on the information that, in the call body,
-- 
1.7.3.4



More information about the uClibc-cvs mailing list