From 339e8963347d7724827448d6a6dff73de5117f03 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Wed, 1 Feb 2006 16:28:21 +0000 Subject: check format string; OK niallo@, "it's nice to have" joris@. --- usr.bin/cvs/log.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/cvs/log.h') diff --git a/usr.bin/cvs/log.h b/usr.bin/cvs/log.h index 5bf5a4f7f22..7ae396b29b0 100644 --- a/usr.bin/cvs/log.h +++ b/usr.bin/cvs/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.15 2006/01/02 17:06:10 xsa Exp $ */ +/* $OpenBSD: log.h,v 1.16 2006/02/01 16:28:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -59,10 +59,10 @@ void cvs_log_init(u_int, u_int); void cvs_log_cleanup(void); int cvs_log_filter(u_int, u_int); -int cvs_log(u_int, const char *, ...); +int cvs_log(u_int, const char *, ...) __attribute__((format(printf, 2, 3))); int cvs_vlog(u_int, const char *, va_list); -int cvs_printf(const char *, ...); +int cvs_printf(const char *, ...) __attribute__((format(printf, 1, 2))); void cvs_putchar(int); -void fatal(const char *, ...); +void fatal(const char *, ...) __dead __attribute__((format(printf, 1,2))); #endif /* LOG_H */ -- cgit v1.2.3