PERFORCE change 43810 for review
Dag-Erling Smorgrav
des at FreeBSD.org
Thu Dec 11 08:37:47 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=43810
Change 43810 by des at 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, ...) \
More information about the p4-projects
mailing list