artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f91c735
)
Fix a format warning about a non-literal string
author
tb
<tb@openbsd.org>
Tue, 10 Oct 2023 09:27:03 +0000
(09:27 +0000)
committer
tb
<tb@openbsd.org>
Tue, 10 Oct 2023 09:27:03 +0000
(09:27 +0000)
ok claudio sthen
usr.bin/systat/netstat.c
patch
|
blob
|
history
diff --git
a/usr.bin/systat/netstat.c
b/usr.bin/systat/netstat.c
index
1e13de5
..
5f80827
100644
(file)
--- a/
usr.bin/systat/netstat.c
+++ b/
usr.bin/systat/netstat.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: netstat.c,v 1.4
5 2015/03/12 01:03:00 claudio Exp $
*/
+/* $OpenBSD: netstat.c,v 1.4
6 2023/10/10 09:27:03 tb Exp $
*/
/* $NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $ */
/*-
@@
-388,7
+388,7
@@
shownetstat(struct netinfo *p)
switch (p->nif_proto) {
case IPPROTO_TCP:
case IPPROTO_UDP:
- tbprintf(proto);
+ tbprintf(
"%s",
proto);
if (p->nif_family == AF_INET6)
tbprintf("6");
break;