Blame SOURCES/0109-grub-core-script-lexer.c-grub_script_lexer_init-Rena.patch

f96e0b
From 6e8d1dda03d29aae8ae79b62a40ed95fbf85bbd2 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Wed, 16 Jan 2013 09:06:11 +0100
f96e0b
Subject: [PATCH 109/482] 	* grub-core/script/lexer.c
f96e0b
 (grub_script_lexer_init): Rename getline 	argument to prevent name
f96e0b
 collision.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                | 5 +++++
f96e0b
 grub-core/script/lexer.c | 4 ++--
f96e0b
 2 files changed, 7 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index d02749b..76a9f68 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,8 @@
f96e0b
+2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
+	* grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
f96e0b
+	argument to prevent name collision.
f96e0b
+
f96e0b
 2013-01-15  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
 
f96e0b
 	Remove nested functions from script reading and parsing.
f96e0b
diff --git a/grub-core/script/lexer.c b/grub-core/script/lexer.c
f96e0b
index cb9d6b0..128d238 100644
f96e0b
--- a/grub-core/script/lexer.c
f96e0b
+++ b/grub-core/script/lexer.c
f96e0b
@@ -216,7 +216,7 @@ grub_script_lexer_yywrap (struct grub_parser_param *parserstate,
f96e0b
 
f96e0b
 struct grub_lexer_param *
f96e0b
 grub_script_lexer_init (struct grub_parser_param *parser, char *script,
f96e0b
-			grub_reader_getline_t getline, void *getline_data)
f96e0b
+			grub_reader_getline_t arg_getline, void *getline_data)
f96e0b
 {
f96e0b
   struct grub_lexer_param *lexerstate;
f96e0b
 
f96e0b
@@ -232,7 +232,7 @@ grub_script_lexer_init (struct grub_parser_param *parser, char *script,
f96e0b
       return 0;
f96e0b
     }
f96e0b
 
f96e0b
-  lexerstate->getline = getline;
f96e0b
+  lexerstate->getline = arg_getline;
f96e0b
   lexerstate->getline_data = getline_data;
f96e0b
   /* The other elements of lexerstate are all zeros already.  */
f96e0b
 
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b