[2223] 2009-05-16 Pavel Roskin <[email protected]>

Pavel Roskin <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2223
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2223
Author:   proski
Date:     2009-05-17 00:37:10 +0000 (Sun, 17 May 2009)
Log Message:
-----------
2009-05-16  Pavel Roskin  <[email protected]>

	* script/lua/grub_lib.c (grub_lua_getenv): Make name and value
	const to avoid a warning.
	(grub_lua_setenv): Likewise.
	* script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
	lmsg to fix a warning.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/script/lua/grub_lib.c
    trunk/grub2/script/lua/grub_main.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-05-16 17:32:32 UTC (rev 2222)
+++ trunk/grub2/ChangeLog	2009-05-17 00:37:10 UTC (rev 2223)
@@ -1,3 +1,11 @@
+2009-05-16  Pavel Roskin  <[email protected]>
+
+	* script/lua/grub_lib.c (grub_lua_getenv): Make name and value
+	const to avoid a warning.
+	(grub_lua_setenv): Likewise.
+	* script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
+	lmsg to fix a warning.
+
 2009-05-16  Felix Zielcke  <[email protected]>
 
 	* conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...

Modified: trunk/grub2/script/lua/grub_lib.c
===================================================================
--- trunk/grub2/script/lua/grub_lib.c	2009-05-16 17:32:32 UTC (rev 2222)
+++ trunk/grub2/script/lua/grub_lib.c	2009-05-17 00:37:10 UTC (rev 2223)
@@ -69,7 +69,7 @@
   n = lua_gettop(state);
   for (i = 1; i <= n; i++)
     {
-      char *name, *value;
+      const char *name, *value;
 
       name = lua_tostring (state, i);
       value = grub_env_get (name);
@@ -85,7 +85,7 @@
 static int
 grub_lua_setenv (lua_State *state)
 {
-  char *name, *value;
+  const char *name, *value;
 
   if (lua_gettop(state) != 2)
     return 0;

Modified: trunk/grub2/script/lua/grub_main.c
===================================================================
--- trunk/grub2/script/lua/grub_main.c	2009-05-16 17:32:32 UTC (rev 2222)
+++ trunk/grub2/script/lua/grub_main.c	2009-05-17 00:37:10 UTC (rev 2223)
@@ -51,7 +51,7 @@
 
       if (r == LUA_ERRSYNTAX)
 	{
-	  int lmsg;
+	  size_t lmsg;
 	  const char *msg = lua_tolstring(state, -1, &lmsg);
 	  const char *tp = msg + lmsg - (sizeof(LUA_QL("<eof>")) - 1);
 	  if (grub_strstr(msg, LUA_QL("<eof>")) == tp)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.