diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-11-16 00:47:50 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-11-16 00:47:50 +0000 |
commit | 0b90e65516245333386f8a3d052e7040ff63dd94 (patch) | |
tree | 64372d295c3060e7d992f9ae6de35b4b21ca40c2 /lib/libkvm/kvm_private.h | |
parent | 3f479a1d557fb651c0e274d0a6dee953dca2b735 (diff) |
_kvm_syserr() is printf-like too
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r-- | lib/libkvm/kvm_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h index c1f8c6ee982..0e735d5bf95 100644 --- a/lib/libkvm/kvm_private.h +++ b/lib/libkvm/kvm_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_private.h,v 1.20 2013/11/16 00:37:11 guenther Exp $ */ +/* $OpenBSD: kvm_private.h,v 1.21 2013/11/16 00:47:49 guenther Exp $ */ /* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */ /*- @@ -99,6 +99,7 @@ int _kvm_kvatop(kvm_t *, u_long, paddr_t *); void *_kvm_malloc(kvm_t *kd, size_t); off_t _kvm_pa2off(kvm_t *, paddr_t); void *_kvm_realloc(kvm_t *kd, void *, size_t); -void _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...); +void _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...) + __attribute__((__format__ (printf, 3, 4))); ssize_t _kvm_pread(kvm_t *, int, void *, size_t, off_t); ssize_t _kvm_pwrite(kvm_t *, int, const void *, size_t, off_t); |