From 5275b1e49f62c273f5d3ef14f093eb8661f54843 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Jun 2004 20:10:53 +0000 Subject: [PATCH] fix a stupid compile error when CONFIG_FEATURE_INSMOD_VERSION_CHECKING is disabled --- modutils/insmod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modutils/insmod.c b/modutils/insmod.c index 1023d0872..50cf007f0 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -290,7 +290,7 @@ extern int insmod_ng_main( int argc, char **argv); #ifndef MODUTILS_MODULE_H static const int MODUTILS_MODULE_H = 1; -#ident "$Id: insmod.c,v 1.120 2004/06/22 11:50:52 andersen Exp $" +#ident "$Id: insmod.c,v 1.121 2004/06/22 20:10:53 andersen Exp $" /*======================================================================*/ /* For sizeof() which are related to the module platform and not to the @@ -448,7 +448,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H static const int MODUTILS_OBJ_H = 1; -#ident "$Id: insmod.c,v 1.120 2004/06/22 11:50:52 andersen Exp $" +#ident "$Id: insmod.c,v 1.121 2004/06/22 20:10:53 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -3607,6 +3607,7 @@ extern int insmod_main( int argc, char **argv) { int opt; int len; + int k_crcs; char *tmp, *tmp1; unsigned long m_size; ElfW(Addr) m_addr; @@ -3618,8 +3619,7 @@ extern int insmod_main( int argc, char **argv) #ifdef CONFIG_FEATURE_INSMOD_VERSION_CHECKING struct utsname uts_info; char m_strversion[STRVERSIONLEN]; - int m_version; - int k_crcs, m_crcs; + int m_version, m_crcs; #endif #ifdef CONFIG_FEATURE_CLEAN_UP FILE *fp = 0; -- 2.25.1