summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/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/ntpd/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/ntpd/parse.y')
-rw-r--r--usr.sbin/ntpd/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y
index 67683a1c1e2..b5567912e34 100644
--- a/usr.sbin/ntpd/parse.y
+++ b/usr.sbin/ntpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.53 2014/11/03 20:15:31 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.54 2014/11/14 03:20:37 doug Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -48,7 +48,9 @@ struct file *pushfile(const char *);
int popfile(void);
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);