summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsturm <sturm@openbsd.org>2006-04-26 20:19:25 +0000
committersturm <sturm@openbsd.org>2006-04-26 20:19:25 +0000
commita0bac368dd6d73baee131bc37286a87eab8384f0 (patch)
tree3c5cde659b50a4aaccf263a4cd1c6da6c90fdbff
parentmake example shell independent; from mickey (diff)
downloadwireguard-openbsd-a0bac368dd6d73baee131bc37286a87eab8384f0.tar.xz
wireguard-openbsd-a0bac368dd6d73baee131bc37286a87eab8384f0.zip
ARGSUSED and a FALLTHROUGH to please lint
ok deraadt
-rw-r--r--bin/systrace/cradle.c7
-rw-r--r--bin/systrace/filter.c3
-rw-r--r--bin/systrace/intercept.c3
-rw-r--r--bin/systrace/systrace.c3
-rw-r--r--bin/systrace/util.c3
5 files changed, 14 insertions, 5 deletions
diff --git a/bin/systrace/cradle.c b/bin/systrace/cradle.c
index 645f425584d..821c6ade20a 100644
--- a/bin/systrace/cradle.c
+++ b/bin/systrace/cradle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cradle.c,v 1.2 2005/03/10 22:22:19 deraadt Exp $ */
+/* $OpenBSD: cradle.c,v 1.3 2006/04/26 20:19:25 sturm Exp $ */
/*
* Copyright (c) 2003 Marius Aamodt Eriksen <marius@monkey.org>
@@ -84,12 +84,14 @@ struct client {
TAILQ_HEAD(client_head, client) clientq;
/* fake signal handler */
+/* ARGSUSED */
static void
sigusr1_handler(int sig)
{
got_sigusr1 = 1;
}
+/* ARGSUSED */
static void
gensig_cb(int sig, short ev, void *data)
{
@@ -247,6 +249,7 @@ cradle_start(char *path, char *uipath, char *guipath)
connected = 1;
}
+/* ARGSUSED */
static void
listen_cb(int fd, short which, void *arg)
{
@@ -299,6 +302,7 @@ listen_cb(int fd, short which, void *arg)
err(1, "event_add()");
}
+/* ARGSUSED */
static void
msg_cb(int fd, short which, void *arg)
{
@@ -373,6 +377,7 @@ msg_cb(int fd, short which, void *arg)
/*
* Hack to catch "idle" EOFs from the UI
*/
+/* ARGSUSED */
static void
ui_cb(int fd, short which, void *arg)
{
diff --git a/bin/systrace/filter.c b/bin/systrace/filter.c
index 48c8f5c92b1..a03d3729147 100644
--- a/bin/systrace/filter.c
+++ b/bin/systrace/filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: filter.c,v 1.30 2004/01/23 20:51:18 sturm Exp $ */
+/* $OpenBSD: filter.c,v 1.31 2006/04/26 20:19:25 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -855,6 +855,7 @@ filter_regex(struct intercept_translate *tl, struct logic *logic)
return (res == 0);
}
+/* ARGSUSED */
int
filter_true(struct intercept_translate *tl, struct logic *logic)
{
diff --git a/bin/systrace/intercept.c b/bin/systrace/intercept.c
index 32cc883b369..c17d6850320 100644
--- a/bin/systrace/intercept.c
+++ b/bin/systrace/intercept.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intercept.c,v 1.50 2006/03/06 10:44:10 djm Exp $ */
+/* $OpenBSD: intercept.c,v 1.51 2006/04/26 20:19:25 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -238,6 +238,7 @@ intercept_register_pfreecb(void (*cb)(int, void *), void *arg)
return (0);
}
+/* ARGSUSED */
static void
sigusr1_handler(int signum)
{
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c
index f6a497fb30a..28922def61a 100644
--- a/bin/systrace/systrace.c
+++ b/bin/systrace/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.51 2006/03/18 19:03:23 robert Exp $ */
+/* $OpenBSD: systrace.c,v 1.52 2006/04/26 20:19:25 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -400,6 +400,7 @@ policyfree_cb(int policynr, void *arg)
systrace_freepolicy(policy);
}
+/* ARGSUSED */
static void
child_handler(int sig)
{
diff --git a/bin/systrace/util.c b/bin/systrace/util.c
index 563c2757098..082792ec23a 100644
--- a/bin/systrace/util.c
+++ b/bin/systrace/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.10 2003/06/16 06:36:40 itojun Exp $ */
+/* $OpenBSD: util.c,v 1.11 2006/04/26 20:19:25 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -59,6 +59,7 @@ strescape(char *str)
if (p >= sizeof(escape) - 1)
errx(1, "%s: string too long: %s",
__func__, str);
+ /* FALLTHROUGH */
default:
escape[p++] = a;
}