More format checking

This commit is contained in:
sommerfeld 2000-07-08 17:45:53 +00:00
parent e292542bce
commit 4eec028c2a
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pk_extern.h,v 1.7 2000/07/02 17:35:00 sommerfeld Exp $ */
/* $NetBSD: pk_extern.h,v 1.8 2000/07/08 17:45:53 sommerfeld Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@ -114,7 +114,9 @@ void pk_restartcause __P((struct pkcb *, struct x25_packet *));
void pk_resetcause __P((struct pkcb *, struct x25_packet *));
void pk_clearcause __P((struct pkcb *, struct x25_packet *));
char *format_ntn __P((struct x25config *));
void pk_message __P((int, struct x25config *, char *, ...));
void pk_message __P((int, struct x25config *, char *, ...))
__attribute__((__format__(__printf__, 3, 4)));
;
int pk_fragment __P((struct pklcd *, struct mbuf *, int, int, int));
/* pk_timer.c */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pk_subr.c,v 1.19 2000/03/30 13:53:36 augustss Exp $ */
/* $NetBSD: pk_subr.c,v 1.20 2000/07/08 17:45:53 sommerfeld Exp $ */
/*
* Copyright (c) 1984 University of British Columbia.
@ -886,7 +886,7 @@ pk_procerror(error, lcp, errstr, diagnostic)
int diagnostic;
{
pk_message(lcp->lcd_lcn, lcp->lcd_pkp->pk_xcp, errstr);
pk_message(lcp->lcd_lcn, lcp->lcd_pkp->pk_xcp, "%s", errstr);
switch (error) {
case PK_CLEAR: