* include/grub/env.h (grub_env_find): Remove prototype.

* grub-core/kern/env.c (grub_env_find): Make static.
	(grub_env_set): Remove useless set.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-26 23:53:21 +01:00
parent a4c65f3441
commit 8e307a625d
3 changed files with 7 additions and 5 deletions

View file

@ -41,7 +41,7 @@ grub_env_hashval (const char *s)
return i % HASHSZ;
}
struct grub_env_var *
static struct grub_env_var *
grub_env_find (const char *name)
{
struct grub_env_var *var;
@ -109,9 +109,6 @@ grub_env_set (const char *name, const char *val)
if (! var)
return grub_errno;
/* This is not necessary. But leave this for readability. */
var->global = 0;
var->name = grub_strdup (name);
if (! var->name)
goto fail;