summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/optimize.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-04-26 16:22:40 +0000
committerguenther <guenther@openbsd.org>2018-04-26 16:22:40 +0000
commita440ace2c803b446a5536c514a2e06cff780232d (patch)
tree7a1977fbae5d05b56901c217f809a4882d7c1f48 /lib/libpcap/optimize.c
parentOups, we only need vmmci(4) for the ramdisk, not the whole vmm(4). (diff)
downloadwireguard-openbsd-a440ace2c803b446a5536c514a2e06cff780232d.tar.xz
wireguard-openbsd-a440ace2c803b446a5536c514a2e06cff780232d.zip
Convert a format string variable to a static const char[] to reduce warnings
ok tb@ millert@ krw@
Diffstat (limited to 'lib/libpcap/optimize.c')
-rw-r--r--lib/libpcap/optimize.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpcap/optimize.c b/lib/libpcap/optimize.c
index b7f7a37ff05..edf93bdcf64 100644
--- a/lib/libpcap/optimize.c
+++ b/lib/libpcap/optimize.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: optimize.c,v 1.19 2016/02/05 16:58:39 canacar Exp $ */
+/* $OpenBSD: optimize.c,v 1.20 2018/04/26 16:22:40 guenther Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996
@@ -1991,7 +1991,8 @@ convert_code_r(p)
{
int i;
int jt, jf;
- char *ljerr = "%s for block-local relative jump: off=%d";
+ static const char ljerr[] =
+ "%s for block-local relative jump: off=%d";
#if 0
printf("code=%x off=%d %x %x\n", src->s.code,