diff options
| author | joerg <joerg@NetBSD.org> | 2012-03-15 02:02:20 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2012-03-15 02:02:20 +0000 |
| commit | 85ebf103375262b27fffdad71fc44b299417f3ff (patch) | |
| tree | e1ed527b316eb219b289e5214b93f707880a0ca1 /lib/lua | |
| parent | fa80b16724ce0bd6438d61e3a11855ca361f10d7 (diff) | |
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Diffstat (limited to 'lib/lua')
| -rw-r--r-- | lib/lua/gpio/gpio.c | 4 | ||||
| -rw-r--r-- | lib/lua/sqlite/sqlite.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/lua/gpio/gpio.c b/lib/lua/gpio/gpio.c index 4457d3ec4ca..ed6ef056e49 100644 --- a/lib/lua/gpio/gpio.c +++ b/lib/lua/gpio/gpio.c @@ -1,4 +1,4 @@ -/* $NetBSD: gpio.c,v 1.6 2011/11/13 16:56:15 mbalmer Exp $ */ +/* $NetBSD: gpio.c,v 1.7 2012/03/15 02:02:21 joerg Exp $ */ /* * Copyright (c) 2011 Marc Balmer <marc@msys.ch> @@ -45,7 +45,7 @@ #define GPIO_METATABLE "GPIO object methods" -static void +static __printflike(2, 3) void gpio_error(lua_State *L, const char *fmt, ...) { va_list ap; diff --git a/lib/lua/sqlite/sqlite.c b/lib/lua/sqlite/sqlite.c index 569bc84cc52..3d1f7b056ab 100644 --- a/lib/lua/sqlite/sqlite.c +++ b/lib/lua/sqlite/sqlite.c @@ -1,4 +1,4 @@ -/* $NetBSD: sqlite.c,v 1.3 2011/10/15 12:58:20 mbalmer Exp $ */ +/* $NetBSD: sqlite.c,v 1.4 2012/03/15 02:02:21 joerg Exp $ */ /* * Copyright (c) 2011 Marc Balmer <marc@msys.ch> @@ -42,7 +42,7 @@ int luaopen_sqlite(lua_State*); -static void +static __printflike(2, 3) void sqlite_error(lua_State *L, const char *fmt, ...) { va_list ap; |
