summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-03-16 18:38:30 +0000
committerguenther <guenther@openbsd.org>2014-03-16 18:38:30 +0000
commitacf82b0a9d74522936f8f278bd20ee7685e38f68 (patch)
tree9b44c9437624a4a4ea694a145d46f7ddcdff9ea8 /lib
parenttweak path checks. now you can create keys named ......pub (diff)
downloadwireguard-openbsd-acf82b0a9d74522936f8f278bd20ee7685e38f68.tar.xz
wireguard-openbsd-acf82b0a9d74522936f8f278bd20ee7685e38f68.zip
lint is dead (long live the lint!), so stop using it as a cpp conditional
(namespace pollution!) or talking about its opinion on code. ok krw@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/errlist.c9
-rw-r--r--lib/libc/locale/iswctype.c6
-rw-r--r--lib/libc/rpc/xdr.c8
-rw-r--r--lib/libc/stdlib/tfind.c4
-rw-r--r--lib/libc/stdlib/tsearch.c4
-rw-r--r--lib/librthread/rthread.c6
6 files changed, 9 insertions, 28 deletions
diff --git a/lib/libc/gen/errlist.c b/lib/libc/gen/errlist.c
index 69607e70900..a1963162c26 100644
--- a/lib/libc/gen/errlist.c
+++ b/lib/libc/gen/errlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: errlist.c,v 1.14 2009/11/24 09:22:22 guenther Exp $ */
+/* $OpenBSD: errlist.c,v 1.15 2014/03/16 18:38:30 guenther Exp $ */
/*
* Copyright (c) 1982, 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -28,12 +28,7 @@
* SUCH DAMAGE.
*/
-#ifdef lint
-char *
-#else
-const char *const
-#endif
- _sys_errlist[] = {
+const char *const _sys_errlist[] = {
"Undefined error: 0", /* 0 - ENOERROR */
"Operation not permitted", /* 1 - EPERM */
"No such file or directory", /* 2 - ENOENT */
diff --git a/lib/libc/locale/iswctype.c b/lib/libc/locale/iswctype.c
index ee4c82df341..0a557aaac76 100644
--- a/lib/libc/locale/iswctype.c
+++ b/lib/libc/locale/iswctype.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iswctype.c,v 1.3 2012/12/05 23:20:00 deraadt Exp $ */
+/* $OpenBSD: iswctype.c,v 1.4 2014/03/16 18:38:30 guenther Exp $ */
/* $NetBSD: iswctype.c,v 1.15 2005/02/09 21:35:46 kleink Exp $ */
/*
@@ -45,10 +45,6 @@
#include "rune_local.h"
#include "_wctrans_local.h"
-#ifdef lint
-#define __inline
-#endif
-
static __inline _RuneType __runetype_w(wint_t);
static __inline int __isctype_w(wint_t, _RuneType);
static __inline wint_t __toupper_w(wint_t);
diff --git a/lib/libc/rpc/xdr.c b/lib/libc/rpc/xdr.c
index fffd81c395e..b3a086d3e74 100644
--- a/lib/libc/rpc/xdr.c
+++ b/lib/libc/rpc/xdr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr.c,v 1.11 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: xdr.c,v 1.12 2014/03/16 18:38:30 guenther Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -409,7 +409,6 @@ xdr_bool(XDR *xdrs, int32_t *bp)
bool_t
xdr_enum(XDR *xdrs, int32_t *ep)
{
-#ifndef lint
enum sizecheck { SIZEVAL }; /* used to find the size of an enum */
/*
@@ -424,11 +423,6 @@ xdr_enum(XDR *xdrs, int32_t *ep)
} else {
return (FALSE);
}
-#else
- (void) (xdr_short(xdrs, (short *)ep));
- (void) (xdr_int(xdrs, (int *)ep));
- return (xdr_long(xdrs, (long *)ep));
-#endif
}
/*
diff --git a/lib/libc/stdlib/tfind.c b/lib/libc/stdlib/tfind.c
index ff6bcd742da..0d1d5196d8b 100644
--- a/lib/libc/stdlib/tfind.c
+++ b/lib/libc/stdlib/tfind.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: tfind.c,v 1.5 2005/03/30 18:51:49 pat Exp $ */
+/* $OpenBSD: tfind.c,v 1.6 2014/03/16 18:38:30 guenther Exp $ */
/*
* Tree search generalized from Knuth (6.2.2) Algorithm T just like
* the AT&T man page says.
*
- * The node_t structure is for internal use only, lint doesn't grok it.
+ * The node_t structure is for internal use only
*
* Written by reading the System V Interface Definition, not the code.
*
diff --git a/lib/libc/stdlib/tsearch.c b/lib/libc/stdlib/tsearch.c
index 2f5e369f6ad..a141085d2b3 100644
--- a/lib/libc/stdlib/tsearch.c
+++ b/lib/libc/stdlib/tsearch.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: tsearch.c,v 1.7 2012/02/06 20:29:54 guenther Exp $ */
+/* $OpenBSD: tsearch.c,v 1.8 2014/03/16 18:38:30 guenther Exp $ */
/*
* Tree search generalized from Knuth (6.2.2) Algorithm T just like
* the AT&T man page says.
*
- * The node_t structure is for internal use only, lint doesn't grok it.
+ * The node_t structure is for internal use only
*
* Written by reading the System V Interface Definition, not the code.
*
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c
index fa2a28d7ac7..0d1c953d50d 100644
--- a/lib/librthread/rthread.c
+++ b/lib/librthread/rthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.c,v 1.76 2013/12/12 08:12:08 guenther Exp $ */
+/* $OpenBSD: rthread.c,v 1.77 2014/03/16 18:38:30 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -62,7 +62,6 @@ struct pthread _initial_thread;
struct thread_control_block _initial_thread_tcb;
struct pthread_attr _rthread_attr_default = {
-#ifndef lint
.stack_addr = NULL,
.stack_size = RTHREAD_STACK_SIZE_DEF,
/* .guard_size set in _rthread_init */
@@ -71,9 +70,6 @@ struct pthread_attr _rthread_attr_default = {
.sched_policy = SCHED_OTHER,
.sched_param = { .sched_priority = 0 },
.sched_inherit = PTHREAD_INHERIT_SCHED,
-#else
- 0
-#endif
};
/*