From: Tilghman Lesher Date: Tue, 22 Aug 2006 02:59:37 +0000 (+0000) Subject: Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded. X-Git-Tag: 1.2.11~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad6bc4d326a27de8a52e89ca97b7abcd806cbf9;p=thirdparty%2Fasterisk.git Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40821 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_random.c b/apps/app_random.c index cab34f31e7..789e04beb4 100644 --- a/apps/app_random.c +++ b/apps/app_random.c @@ -116,9 +116,8 @@ char *description(void) int usecount(void) { - int res; - STANDARD_USECOUNT(res); - return res; + /* Don't allow unload, since rand(3) depends upon this module being here. */ + return 1; } char *key()