summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/parse.y
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2014-11-14 03:20:38 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2014-11-14 03:20:38 +0000
commit5b2bd120efc36e43885fddaf159431fe0dfee19d (patch)
tree801957c533d7a072839c2c32bfc74d186c0bd03b /usr.sbin/ldapd/parse.y
parentc441472a32bbc7572a4ff7cb9eae3c36bef52e46 (diff)
Add gcc printf format attributes to yyerror() in parse.y files.
No yyerror() calls needed to be changed. ok bluhm@
Diffstat (limited to 'usr.sbin/ldapd/parse.y')
-rw-r--r--usr.sbin/ldapd/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/parse.y b/usr.sbin/ldapd/parse.y
index 825e2938018..21b5645b3ce 100644
--- a/usr.sbin/ldapd/parse.y
+++ b/usr.sbin/ldapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.14 2014/11/03 18:44:36 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.15 2014/11/14 03:20:36 doug Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
@@ -59,7 +59,9 @@ int popfile(void);
int check_file_secrecy(int, const char *);
int yyparse(void);
int yylex(void);
-int yyerror(const char *, ...);
+int yyerror(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)))
+ __attribute__((__nonnull__ (1)));
int kw_cmp(const void *, const void *);
int lookup(char *);
int lgetc(int);