summaryrefslogtreecommitdiffstats
path: root/src/lib/krb4
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-06-29 01:01:24 +0000
committerKen Raeburn <raeburn@mit.edu>2007-06-29 01:01:24 +0000
commitf8369e867bcb6ff44d2ee12fc79070b869d41abd (patch)
tree93742abe35959d7f3897d6f3b43ca37921d59a82 /src/lib/krb4
parent0708ecde434afdabb8412d6af61a0c717af56abb (diff)
downloadkrb5-f8369e867bcb6ff44d2ee12fc79070b869d41abd.tar.gz
krb5-f8369e867bcb6ff44d2ee12fc79070b869d41abd.tar.xz
krb5-f8369e867bcb6ff44d2ee12fc79070b869d41abd.zip
Attach format attributes to declarations of various message-formatting
routines under gcc. In a couple of routines, hard-code the preference for using the vsnprintf paths instead of list-of-int-arguments hacks now that we're assuming vsnprintf is available in other places. Installed headers affected: com_err.h (com_err, com_err_va) ss.h (ss_error) krb5.h (krb5_set_error_message, krb5_vset_error_message) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19653 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb4')
-rw-r--r--src/lib/krb4/krb4int.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/krb4/krb4int.h b/src/lib/krb4/krb4int.h
index 15ea14564..51b1138c9 100644
--- a/src/lib/krb4/krb4int.h
+++ b/src/lib/krb4/krb4int.h
@@ -1,7 +1,7 @@
/*
* lib/krb4/krb4int.h
*
- * Copyright 2001-2002 by the Massachusetts Institute of Technology.
+ * Copyright 2001-2002, 2007 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
@@ -62,7 +62,11 @@ int krb_get_in_tkt_preauth_creds(char *, char *, char *,
void kset_logfile(char *);
/* log.c */
-void krb_log(const char *, ...);
+void krb_log(const char *, ...)
+#if !defined(__cplusplus) && (__GNUC__ > 2)
+ __attribute__((__format__(__printf__, 1, 2)))
+#endif
+ ;
void krb_set_logfile(char *);