aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_random.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-22 02:59:37 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-22 02:59:37 +0000
commit8ee004b728732b782dbca2bdb5d8fd1c753e1bd9 (patch)
tree067014f3ec5ee54ec88f8286f3151972110c4dd3 /apps/app_random.c
parentd86103bc3b97ba44c972607a97d00e2058911e37 (diff)
Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@40821 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_random.c')
-rw-r--r--apps/app_random.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_random.c b/apps/app_random.c
index cab34f31e..789e04beb 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()