summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd
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/ldpd
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/ldpd')
-rw-r--r--usr.sbin/ldpd/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/parse.y b/usr.sbin/ldpd/parse.y
index 19e06effaee..0b84a7718ef 100644
--- a/usr.sbin/ldpd/parse.y
+++ b/usr.sbin/ldpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.21 2014/11/03 18:44:36 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.22 2014/11/14 03:20:37 doug Exp $ */
/*
* Copyright (c) 2004, 2005, 2008 Esben Norby <norby@openbsd.org>
@@ -57,7 +57,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);