From d95d9bb24ea20a2859f16b74d93d4379466983df Mon Sep 17 00:00:00 2001 From: russell Date: Fri, 16 Nov 2007 22:26:44 +0000 Subject: Temporarily revert revision 89325, which added md5 magic for keeping track of what build options were used. We agreed that we should remove this before making a 1.4 release, and then we can put it back in. Then, we can take a month or so to play around with it to get it how we want it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89339 f38db490-d61c-443f-a65b-d21fe96a405b --- main/loader.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'main') diff --git a/main/loader.c b/main/loader.c index f0b98f9b9..7df486251 100644 --- a/main/loader.c +++ b/main/loader.c @@ -76,8 +76,6 @@ static unsigned char expected_key[] = { 0x87, 0x76, 0x79, 0x35, 0x23, 0xea, 0x3a, 0xd3, 0x25, 0x2a, 0xbb, 0x35, 0x87, 0xe4, 0x22, 0x24 }; -static unsigned int buildopt_sum[4] = AST_BUILDOPT_SUM; - static unsigned int embedding = 1; /* we always start out by registering embedded modules, since they are here before we dlopen() any */ @@ -600,8 +598,6 @@ int ast_module_reload(const char *name) static unsigned int inspect_module(const struct ast_module *mod) { - unsigned int buildopt_empty[4] = { 0, }; - if (!mod->info->description) { ast_log(LOG_WARNING, "Module '%s' does not provide a description.\n", mod->resource); return 1; @@ -617,13 +613,6 @@ static unsigned int inspect_module(const struct ast_module *mod) return 1; } - if (memcmp(buildopt_empty, mod->info->buildopt_sum, sizeof(buildopt_empty)) && - memcmp(buildopt_sum, mod->info->buildopt_sum, sizeof(buildopt_sum))) { - ast_log(LOG_WARNING, "Module '%s' was not compiled with the same compile-time options as this version of Asterisk.\n", mod->resource); - ast_log(LOG_WARNING, "Module '%s' will not be initialized as it may cause instability.\n", mod->resource); - return 1; - } - return 0; } -- cgit v1.2.3