summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-12-20 22:19:08 +0000
committerkrw <krw@openbsd.org>2016-12-20 22:19:08 +0000
commit9313a659c4e134510399c457e303d62c0565e4ce (patch)
tree8df3788500c297c7023bce14a46a7e55d77fe381 /lib/libc
parentExplain what the trailing '*' in command names output by sa(8) mean. (diff)
downloadwireguard-openbsd-9313a659c4e134510399c457e303d62c0565e4ce.tar.xz
wireguard-openbsd-9313a659c4e134510399c457e303d62c0565e4ce.zip
Add 'default:' cases to switch statements that gcc whines about.
ok jung@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/rpc_prot.c5
-rw-r--r--lib/libc/rpc/xdr.c4
-rw-r--r--lib/libc/rpc/xdr_array.c4
-rw-r--r--lib/libc/rpc/xdr_reference.c4
4 files changed, 13 insertions, 4 deletions
diff --git a/lib/libc/rpc/rpc_prot.c b/lib/libc/rpc/rpc_prot.c
index 20558bfa04c..2c1d981f975 100644
--- a/lib/libc/rpc/rpc_prot.c
+++ b/lib/libc/rpc/rpc_prot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_prot.c,v 1.13 2015/09/13 15:36:56 guenther Exp $ */
+/* $OpenBSD: rpc_prot.c,v 1.14 2016/12/20 22:19:08 krw Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -264,6 +264,9 @@ _seterr_reply(struct rpc_msg *msg, struct rpc_err *error)
error->re_vers.low = msg->acpted_rply.ar_vers.low;
error->re_vers.high = msg->acpted_rply.ar_vers.high;
break;
+
+ default:
+ break;
}
}
DEF_STRONG(_seterr_reply);
diff --git a/lib/libc/rpc/xdr.c b/lib/libc/rpc/xdr.c
index 95e60711059..a5117ef2a9c 100644
--- a/lib/libc/rpc/xdr.c
+++ b/lib/libc/rpc/xdr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr.c,v 1.14 2015/09/13 15:36:56 guenther Exp $ */
+/* $OpenBSD: xdr.c,v 1.15 2016/12/20 22:19:08 krw Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -627,6 +627,8 @@ xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
case XDR_ENCODE:
size = strlen(sp);
break;
+ default:
+ break;
}
if (! xdr_u_int(xdrs, &size)) {
return (FALSE);
diff --git a/lib/libc/rpc/xdr_array.c b/lib/libc/rpc/xdr_array.c
index 7eee6c8ad93..6e4b7abef64 100644
--- a/lib/libc/rpc/xdr_array.c
+++ b/lib/libc/rpc/xdr_array.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_array.c,v 1.12 2015/09/13 15:36:56 guenther Exp $ */
+/* $OpenBSD: xdr_array.c,v 1.13 2016/12/20 22:19:08 krw Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -92,6 +92,8 @@ xdr_array(XDR *xdrs,
break;
case XDR_FREE:
return (TRUE);
+ default:
+ break;
}
}
diff --git a/lib/libc/rpc/xdr_reference.c b/lib/libc/rpc/xdr_reference.c
index 2e604281647..ad67661d020 100644
--- a/lib/libc/rpc/xdr_reference.c
+++ b/lib/libc/rpc/xdr_reference.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_reference.c,v 1.11 2015/09/13 15:36:56 guenther Exp $ */
+/* $OpenBSD: xdr_reference.c,v 1.12 2016/12/20 22:19:08 krw Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -72,6 +72,8 @@ xdr_reference(XDR *xdrs,
if (loc == NULL)
return (FALSE);
break;
+ default:
+ break;
}
stat = (*proc)(xdrs, loc);