From 414fe8f956813a74d510e64129ea175e4b8498e6 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 6 Dec 2007 03:44:59 +0000 Subject: [PATCH] Change the table used to hold the default timers to be global and const, instead of allocating it on the stack each time the function is called. git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@494 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pri.c b/pri.c index 8422fe6..31b5200 100644 --- a/pri.c +++ b/pri.c @@ -81,7 +81,7 @@ char *pri_switch2str(int sw) static void pri_default_timers(struct pri *pri, int switchtype) { - int defaulttimers[20][PRI_MAX_TIMERS] = PRI_TIMERS_ALL; + static const int defaulttimers[20][PRI_MAX_TIMERS] = PRI_TIMERS_ALL; int x; for (x = 0; x