summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_private.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-11-12 14:49:41 +0000
committerguenther <guenther@openbsd.org>2013-11-12 14:49:41 +0000
commitb3c702cc1f7375e38eb0db37ba479a400222f972 (patch)
treeb4a06f99253d67c806bbcbcbec0e738275629798 /lib/libkvm/kvm_private.h
parentTweak comment to explicitly mention that disk blocks are DEV_BSIZE (diff)
downloadwireguard-openbsd-b3c702cc1f7375e38eb0db37ba479a400222f972.tar.xz
wireguard-openbsd-b3c702cc1f7375e38eb0db37ba479a400222f972.zip
Apply format __attribute__ to _kvm_err() and fix the errors that it detects.
Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data. ok deraadt@ millert@
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r--lib/libkvm/kvm_private.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h
index 409bace43ad..e6718659f28 100644
--- a/lib/libkvm/kvm_private.h
+++ b/lib/libkvm/kvm_private.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_private.h,v 1.18 2013/10/22 16:40:27 guenther Exp $ */
+/* $OpenBSD: kvm_private.h,v 1.19 2013/11/12 14:49:41 guenther Exp $ */
/* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */
/*-
@@ -90,7 +90,8 @@ struct __kvm {
/*
* Functions used internally by kvm, but across kvm modules.
*/
-void _kvm_err(kvm_t *kd, const char *program, const char *fmt, ...);
+void _kvm_err(kvm_t *kd, const char *program, const char *fmt, ...)
+ __attribute__((__format__ (printf, 3, 4)));
int _kvm_dump_mkheader(kvm_t *kd_live, kvm_t *kd_dump);
void _kvm_freevtop(kvm_t *);
int _kvm_initvtop(kvm_t *);