summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-09-09 01:05:03 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-09-09 01:05:03 +0000
commit3e3a919a5d30ed7278b043b72322e6b47f83807c (patch)
tree7e0875f4a92f94a3370c03ffa71a4be5e80727fc
parent79ad56bfa29cf2f90c167ea1b0ca86405a5e987b (diff)
Fix GCC 2.96 build (bug #2402)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@454 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xwcfxs.c2
-rwxr-xr-xwctdm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/wcfxs.c b/wcfxs.c
index 84fe9f6..0620371 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -926,6 +926,7 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
{
unsigned char vbat;
unsigned long origjiffies;
+ int lim;
/* Set period of DC-DC converter to 1/64 khz */
wcfxs_setreg(wc, card, 92, 0xff /* was 0xff */);
@@ -959,7 +960,6 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
/* Proslic max allowed loop current, reg 71 LOOP_I_LIMIT */
/* If out of range, just set it to the default value */
- int lim;
lim = (loopcurrent - 20) / 3;
if ( loopcurrent > 41 ) {
lim = 0;
diff --git a/wctdm.c b/wctdm.c
index 84fe9f6..0620371 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -926,6 +926,7 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
{
unsigned char vbat;
unsigned long origjiffies;
+ int lim;
/* Set period of DC-DC converter to 1/64 khz */
wcfxs_setreg(wc, card, 92, 0xff /* was 0xff */);
@@ -959,7 +960,6 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
/* Proslic max allowed loop current, reg 71 LOOP_I_LIMIT */
/* If out of range, just set it to the default value */
- int lim;
lim = (loopcurrent - 20) / 3;
if ( loopcurrent > 41 ) {
lim = 0;