summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rbootd/utils.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-22 04:43:40 +0000
committerguenther <guenther@openbsd.org>2013-08-22 04:43:40 +0000
commit82ff36301fdb8c25511dd105cf211d26ea7f836e (patch)
treef17f8c8d35e761468f7997cee38d8a28bf837c8b /usr.sbin/rbootd/utils.c
parentSplit out from kdump.c the ktrstruct.c bits into ktrstruct.c (diff)
downloadwireguard-openbsd-82ff36301fdb8c25511dd105cf211d26ea7f836e.tar.xz
wireguard-openbsd-82ff36301fdb8c25511dd105cf211d26ea7f836e.zip
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
Diffstat (limited to 'usr.sbin/rbootd/utils.c')
-rw-r--r--usr.sbin/rbootd/utils.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/rbootd/utils.c b/usr.sbin/rbootd/utils.c
index 16a6aceb5db..3ad5792d51a 100644
--- a/usr.sbin/rbootd/utils.c
+++ b/usr.sbin/rbootd/utils.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utils.c,v 1.11 2013/04/03 03:20:39 deraadt Exp $ */
+/* $OpenBSD: utils.c,v 1.12 2013/08/22 04:43:41 guenther Exp $ */
/* $NetBSD: utils.c,v 1.5.2.1 1995/11/14 08:45:46 thorpej Exp $ */
/*
@@ -71,8 +71,10 @@
void
DispPkt(RMPCONN *rconn, int direct)
{
- static char BootFmt[] = "\t\tRetCode:%u SeqNo:%lx SessID:%x Vers:%u";
- static char ReadFmt[] = "\t\tRetCode:%u Offset:%lx SessID:%x\n";
+ static const char BootFmt[] =
+ "\t\tRetCode:%u SeqNo:%x SessID:%x Vers:%u";
+ static const char ReadFmt[] =
+ "\t\tRetCode:%u Offset:%x SessID:%x\n";
struct tm *tmp;
struct rmp_packet *rmp;
int i, omask;