NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/50786: gpio_set_info function in the sqlite lua module is incorrectly named



>Number:         50786
>Category:       lib
>Synopsis:       gpio_set_info function in the sqlite lua module is incorrectly named
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 09 04:25:00 +0000 2016
>Originator:     Travis Paul
>Release:        current
>Organization:
>Environment:
NetBSD kagato.netverb.com 7.99.26 NetBSD 7.99.26 (kagato) #0: Sun Feb  7 11:33:50 EST 2016  tpaul%kagato.netverb.com@localhost:/build/obj/sys/arch/amd64/compile/kagato amd64
>Description:
The gpio_set_info function in the lua sqlite module should be called sqlite_set_info
>How-To-Repeat:
The incorrect name appears to be harmless when running the module.
>Fix:
Index: sqlite.c
===================================================================
RCS file: /cvsroot/src/lib/lua/sqlite/sqlite.c,v
retrieving revision 1.7
diff -u -r1.7 sqlite.c
--- sqlite.c    19 Jul 2014 18:38:34 -0000      1.7
+++ sqlite.c    9 Feb 2016 04:13:43 -0000
@@ -392,7 +392,7 @@
 };
 
 static void
-gpio_set_info(lua_State *L)
+sqlite_set_info(lua_State *L)
 {
        lua_pushliteral(L, "_COPYRIGHT");
        lua_pushliteral(L, "Copyright (C) 2011, 2012, 2013 by "
@@ -449,7 +449,7 @@
        luaL_newlib(L, sqlite_methods);
        luaL_setfuncs(L, db_methods, 0);
        luaL_setfuncs(L, stmt_methods, 0);
-       gpio_set_info(L);
+       sqlite_set_info(L);
 
        /* The database connection metatable */
        if (luaL_newmetatable(L, SQLITE_DB_METATABLE)) {



Home | Main Index | Thread Index | Old Index