All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: [patch] fixed menu so you can use it...
Date: Sat, 01 Apr 2006 17:32:42 +0300	[thread overview]
Message-ID: <442E8F0A.30803@nic.fi> (raw)

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

Hi,

I made some fixes to menu. Now you can even select a menu entry :).

There were also some odd code in elsewhere so I fixed some issues
related to those too.

Thanks,
Vesa Jääskeläinen

[-- Attachment #2: grub2-menufix.diff --]
[-- Type: text/plain, Size: 1181 bytes --]

Index: ChangeLog
===================================================================
RCS file: /sources/grub/grub2/ChangeLog,v
retrieving revision 1.228
diff -u -r1.228 ChangeLog
--- ChangeLog	31 Mar 2006 14:26:33 -0000	1.228
+++ ChangeLog	1 Apr 2006 14:28:58 -0000
@@ -1,3 +1,9 @@
+2006-04-01  Vesa Jaaskelainen  <chaac@nic.fi>
+
+	* normal/main.c (grub_normal_menu_addentry): Fixed menu size
+	calculation.
+	(read_config_file): Made it to close file before returning.
+
 2006-03-31  Vesa Jaaskelainen  <chaac@nic.fi>
 
 	* DISTLIST: Added include/grub/i386/pc/vbeblit.h,
Index: normal/main.c
===================================================================
RCS file: /sources/grub/grub2/normal/main.c,v
retrieving revision 1.14
diff -u -r1.14 main.c
--- normal/main.c	17 Jan 2006 09:50:47 -0000	1.14
+++ normal/main.c	1 Apr 2006 14:28:59 -0000
@@ -153,6 +153,8 @@
   (*last)->next = 0;
   (*last)->sourcecode = sourcecode;
 
+  current_menu->size++;
+
   return GRUB_ERR_NONE;
 }
 
@@ -223,10 +225,8 @@
       grub_script_free (parsed_script);
     }
 
-  return newmenu;
-
   grub_file_close (file);
-  return 0;
+  return newmenu;
 }
 
 /* This starts the normal mode.  */

             reply	other threads:[~2006-04-01 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-01 14:32 Vesa Jääskeläinen [this message]
2006-04-01 14:37 ` [patch] fixed menu so you can use it Marco Gerards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=442E8F0A.30803@nic.fi \
    --to=chaac@nic.fi \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.