aboutsummaryrefslogtreecommitdiff
path: root/tecmem.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-13 20:05:54 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-21 20:49:37 +0300
commit278cc757b3146be68376318999415b97220c4d92 (patch)
treede44a0832bad1392f9b5347144a12af5c9039bf1 /tecmem.c
parent415ef16ae3b6b32652135a219b12a074dff265d9 (diff)
downloadvideoteco-fork-278cc757b3146be68376318999415b97220c4d92.tar.gz
silence some warnings when compiling under FreeBSD (and probably Linux)
Also avoid old-school function declarations without parameters (`void foo();`). This is unnecessarily loosing type safety.
Diffstat (limited to 'tecmem.c')
-rw-r--r--tecmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tecmem.c b/tecmem.c
index 71b595e..f5abd95 100644
--- a/tecmem.c
+++ b/tecmem.c
@@ -78,7 +78,7 @@ char *
tec_alloc( int type, int size )
{
int actual_size;
-register int i,j;
+register int i;
register char *cp;
register struct memblock *mp;
register struct memlist *lp;
@@ -173,7 +173,7 @@ extern char outof_memory;
}/* End IF */
if(lookaside_lists[i] == NULL){
- j = BIG_MALLOC_HUNK_SIZE / actual_size;
+ //j = BIG_MALLOC_HUNK_SIZE / actual_size;
cp = (char *)malloc((unsigned)(BIG_MALLOC_HUNK_SIZE));
if(cp == NULL){