Module Name:    src
Committed By:   mbalmer
Date:           Sat Oct 26 09:18:00 UTC 2013

Modified Files:
        src/lib/lua/gpio: gpio.c

Log Message:
also register gpio_methods on the gpio table


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/lua/gpio/gpio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/lua/gpio/gpio.c
diff -u src/lib/lua/gpio/gpio.c:1.7 src/lib/lua/gpio/gpio.c:1.8
--- src/lib/lua/gpio/gpio.c:1.7	Thu Mar 15 02:02:21 2012
+++ src/lib/lua/gpio/gpio.c	Sat Oct 26 09:18:00 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: gpio.c,v 1.7 2012/03/15 02:02:21 joerg Exp $ */
+/*	$NetBSD: gpio.c,v 1.8 2013/10/26 09:18:00 mbalmer Exp $ */
 
 /*
  * Copyright (c) 2011 Marc Balmer <m...@msys.ch>
@@ -255,13 +255,14 @@ static void
 gpio_set_info(lua_State *L)
 {
 	lua_pushliteral(L, "_COPYRIGHT");
-	lua_pushliteral(L, "Copyright (C) 2011 Marc Balmer <m...@msys.ch>");
+	lua_pushliteral(L, "Copyright (C) 2011, 2013 Marc Balmer "
+	    "<m...@msys.ch>");
 	lua_settable(L, -3);
 	lua_pushliteral(L, "_DESCRIPTION");
 	lua_pushliteral(L, "GPIO interface for Lua");
 	lua_settable(L, -3);
 	lua_pushliteral(L, "_VERSION");
-	lua_pushliteral(L, "gpio 1.0.1");
+	lua_pushliteral(L, "gpio 1.0.2");
 	lua_settable(L, -3);
 }
 
@@ -288,6 +289,7 @@ luaopen_gpio(lua_State* L)
 	int n;
 
 	luaL_register(L, "gpio", methods);
+	luaL_register(L, NULL, gpio_methods);
 	gpio_set_info(L);
 
 	/* The gpio metatable */

Reply via email to