Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc Don't use macros as types or variable names.
details: https://anonhg.NetBSD.org/src/rev/401bbaec2c3c
branches: trunk
changeset: 341454:401bbaec2c3c
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Nov 06 23:05:09 2015 +0000
description:
Don't use macros as types or variable names.
diffstat:
lib/libc/rpc/rpc_commondata.c | 6 ++++--
lib/libc/rpc/svc_fdset.c | 18 +++++++++---------
2 files changed, 13 insertions(+), 11 deletions(-)
diffs (96 lines):
diff -r 82b926376b52 -r 401bbaec2c3c lib/libc/rpc/rpc_commondata.c
--- a/lib/libc/rpc/rpc_commondata.c Fri Nov 06 21:33:07 2015 +0000
+++ b/lib/libc/rpc/rpc_commondata.c Fri Nov 06 23:05:09 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_commondata.c,v 1.9 2013/03/11 20:19:29 tron Exp $ */
+/* $NetBSD: rpc_commondata.c,v 1.10 2015/11/06 23:05:09 joerg Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -31,12 +31,14 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#define SVC_LEGACY
+
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char *sccsid = "@(#)rpc_commondata.c 2.1 88/07/29 4.0 RPCSRC";
#else
-__RCSID("$NetBSD: rpc_commondata.c,v 1.9 2013/03/11 20:19:29 tron Exp $");
+__RCSID("$NetBSD: rpc_commondata.c,v 1.10 2015/11/06 23:05:09 joerg Exp $");
#endif
#endif
diff -r 82b926376b52 -r 401bbaec2c3c lib/libc/rpc/svc_fdset.c
--- a/lib/libc/rpc/svc_fdset.c Fri Nov 06 21:33:07 2015 +0000
+++ b/lib/libc/rpc/svc_fdset.c Fri Nov 06 23:05:09 2015 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: svc_fdset.c,v 1.2 2015/11/06 19:34:13 christos Exp $ */
+/* $NetBSD: svc_fdset.c,v 1.3 2015/11/06 23:05:09 joerg Exp $ */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: svc_fdset.c,v 1.2 2015/11/06 19:34:13 christos Exp $");
+__RCSID("$NetBSD: svc_fdset.c,v 1.3 2015/11/06 23:05:09 joerg Exp $");
#include "reentrant.h"
@@ -13,7 +13,7 @@
#include <stdlib.h>
#include <string.h>
-struct svc_fdset {
+struct my_svc_fdset {
fd_set *fdset;
int fdmax;
int fdsize;
@@ -96,7 +96,7 @@
static void
svc_fdset_free(void *v)
{
- struct svc_fdset *rv = v;
+ struct my_svc_fdset *rv = v;
DPRINTF_FDSET(rv->fdset, 0, "free");
free(rv->fdset);
@@ -133,10 +133,10 @@
return *fdset;
}
-static struct svc_fdset *
+static struct my_svc_fdset *
svc_fdset_alloc(int fd)
{
- struct svc_fdset *rv;
+ struct my_svc_fdset *rv;
if (fdsetkey == -1)
thr_keycreate(&fdsetkey, svc_fdset_free);
@@ -172,7 +172,7 @@
static fd_set *
svc_fdset_get_internal(int fd)
{
- struct svc_fdset *rv;
+ struct my_svc_fdset *rv;
if (!__isthreaded || fdsetkey == -2)
return svc_fdset_resize(fd, &__svc_fdset, &svc_fdsize);
@@ -270,7 +270,7 @@
int *
svc_fdset_getmax(void)
{
- struct svc_fdset *rv;
+ struct my_svc_fdset *rv;
if (!__isthreaded || fdsetkey == -2)
return &svc_maxfd;
@@ -284,7 +284,7 @@
int
svc_fdset_getsize(int fd)
{
- struct svc_fdset *rv;
+ struct my_svc_fdset *rv;
if (!__isthreaded || fdsetkey == -2) {
if (svc_fdset_resize(fd, &__svc_fdset, &svc_fdsize) == NULL)
Home |
Main Index |
Thread Index |
Old Index