]> git.sur5r.net Git - u-boot/blobdiff - common/env_mgdisk.c
sandbox: config: enable fdt and snprintf() options
[u-boot] / common / env_mgdisk.c
index a69923b700f69a35be87ed3c3d5b3baf227cb559..d00e141d5b7a3c5bef10630cd102718d7e9690e6 100644 (file)
 #include <linux/stddef.h>
 #include <mg_disk.h>
 
-/* references to names in env_common.c */
-extern uchar default_environment[];
-
 char *env_name_spec = "MG_DISK";
 
-env_t *env_ptr = 0;
+env_t *env_ptr;
 
 DECLARE_GLOBAL_DATA_PTR;
 
-uchar env_get_char_spec(int index)
-{
-       return (*((uchar *)(gd->env_addr + index)));
-}
-
 void env_relocate_spec(void)
 {
        char buf[CONFIG_ENV_SIZE];