Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2003 08:37:44 -0800 (PST)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 43810 for review
Message-ID:  <200312111637.hBBGbilP021535@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=43810

Change 43810 by des@des.at.des.thinksec.com on 2003/12/11 08:37:14

	Tell gcc that _openpam_log() behaves like printf().

Affected files ...

.. //depot/projects/openpam/include/security/openpam.h#27 edit

Differences ...

==== //depot/projects/openpam/include/security/openpam.h#27 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/include/security/openpam.h#26 $
+ * $P4: //depot/projects/openpam/include/security/openpam.h#27 $
  */
 
 #ifndef _SECURITY_OPENPAM_H_INCLUDED
@@ -147,7 +147,11 @@
 _openpam_log(int _level,
 	const char *_func,
 	const char *_fmt,
-	...);
+	...)
+#if defined(__GNUC__)
+	__attribute__((__format__(__printf__, 3, 4)))
+#endif
+	;
 
 #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
 #define openpam_log(lvl, ...) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312111637.hBBGbilP021535>