svn rev #23562: trunk/src/kdc/

epeisach@MIT.EDU epeisach at MIT.EDU
Fri Jan 1 08:00:08 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23562
Commit By: epeisach
Log Message:
Add gcc printf attribute for kdc_err prototype.




Changed Files:
U   trunk/src/kdc/kdc_util.h
Modified: trunk/src/kdc/kdc_util.h
===================================================================
--- trunk/src/kdc/kdc_util.h	2010-01-01 12:58:42 UTC (rev 23561)
+++ trunk/src/kdc/kdc_util.h	2010-01-01 13:00:08 UTC (rev 23562)
@@ -147,7 +147,11 @@
 krb5_error_code
 setup_server_realm (krb5_principal);
 void
-kdc_err(krb5_context call_context, errcode_t code, const char *fmt, ...);
+kdc_err(krb5_context call_context, errcode_t code, const char *fmt, ...)
+#if !defined(__cplusplus) && (__GNUC__ > 2)
+    __attribute__((__format__(__printf__, 3, 4)))
+#endif
+;
 
 /* network.c */
 krb5_error_code listen_and_process (void);




More information about the cvs-krb5 mailing list