Fix gcc -Wall nits.
diff --git a/misc/e2initrd_helper.c b/misc/e2initrd_helper.c
index 243aab4..2600190 100644
--- a/misc/e2initrd_helper.c
+++ b/misc/e2initrd_helper.c
@@ -67,13 +67,12 @@
exit (1);
}
-errcode_t get_file(ext2_filsys fs, const char * filename,
+static errcode_t get_file(ext2_filsys fs, const char * filename,
struct mem_file *ret_file)
{
errcode_t retval;
char *buf;
ext2_file_t e2_file;
- int nbytes;
unsigned int got;
struct ext2_inode inode;
ext2_ino_t ino;
@@ -119,7 +118,7 @@
return retval;
}
-char *get_line(struct mem_file *file)
+static char *get_line(struct mem_file *file)
{
char *cp, *ret;
int s = 0;
@@ -142,7 +141,7 @@
return ret;
}
-int mem_file_eof(struct mem_file *file)
+static int mem_file_eof(struct mem_file *file)
{
return (file->ptr >= file->size);
}
@@ -280,7 +279,7 @@
return 0;
}
-void free_fstab_line(struct fs_info *fs)
+static void free_fstab_line(struct fs_info *fs)
{
if (fs->device)
fs->device = 0;
@@ -297,9 +296,6 @@
static void PRS(int argc, char **argv)
{
int c;
- char * tmp;
- struct group * gr;
- struct passwd * pw;
#ifdef ENABLE_NLS
setlocale(LC_MESSAGES, "");
@@ -332,7 +328,7 @@
}
}
-void get_root_type(ext2_filsys fs)
+static void get_root_type(ext2_filsys fs)
{
errcode_t retval;
struct mem_file file;
@@ -366,9 +362,7 @@
{
errcode_t retval;
ext2_filsys fs;
- struct ext2_super_block *sb;
io_manager io_ptr;
- int got, ret;
initialize_ext2_error_table();