* include/grub/util/getroot.h (grub_get_prefix): Remove prototype.

* util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
	(grub_get_prefix): Remove function.
	* util/grub-emu.c (main): Replace grub_get_prefix () call by
	make_system_path_relative_to_its_root ().
	* util/sparc64/ieee1275/grub-setup.c (main): Likewise.
This commit is contained in:
Christian Franke 2010-04-26 03:35:55 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 553c01f958
commit 460d8402e0
5 changed files with 13 additions and 101 deletions

View file

@ -242,7 +242,7 @@ main (int argc, char *argv[])
if (strcmp (root_dev, "host") == 0)
dir = xstrdup (dir);
else
dir = grub_get_prefix (dir);
dir = make_system_path_relative_to_its_root (dir);
prefix = xmalloc (strlen (root_dev) + 2 + strlen (dir) + 1);
sprintf (prefix, "(%s)%s", root_dev, dir);
free (dir);