Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/lib/libkvm Pull up revision 1.10 (requested by sommerfe...



details:   https://anonhg.NetBSD.org/src/rev/8e8d729968bf
branches:  netbsd-1-4
changeset: 470934:8e8d729968bf
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 04 16:22:56 2000 +0000

description:
Pull up revision 1.10 (requested by sommerfeld):
  Format string audit.

diffstat:

 lib/libkvm/kvm_private.h |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 936986ce429f -r 8e8d729968bf lib/libkvm/kvm_private.h
--- a/lib/libkvm/kvm_private.h  Wed Oct 04 16:22:12 2000 +0000
+++ b/lib/libkvm/kvm_private.h  Wed Oct 04 16:22:56 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kvm_private.h,v 1.8 1997/08/12 16:27:01 gwr Exp $      */
+/*     $NetBSD: kvm_private.h,v 1.8.4.1 2000/10/04 16:22:56 he Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -91,7 +91,8 @@
 /*
  * Functions used internally by kvm, but across kvm modules.
  */
-void    _kvm_err __P((kvm_t *kd, const char *program, const char *fmt, ...));
+void    _kvm_err __P((kvm_t *kd, const char *program, const char *fmt, ...))
+       __attribute__((__format__(__printf__, 3, 4)));
 int     _kvm_dump_mkheader __P((kvm_t *kd_live, kvm_t *kd_dump));
 void    _kvm_freeprocs __P((kvm_t *kd));
 void    _kvm_freevtop __P((kvm_t *));
@@ -102,4 +103,6 @@
 off_t   _kvm_pa2off __P((kvm_t *, u_long));
 void   *_kvm_realloc __P((kvm_t *kd, void *, size_t));
 void    _kvm_syserr
-           __P((kvm_t *kd, const char *program, const char *fmt, ...));
+           __P((kvm_t *kd, const char *program, const char *fmt, ...))
+           __attribute__((__format__(__printf__, 3, 4)));
+



Home | Main Index | Thread Index | Old Index