diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-13 20:05:54 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-21 20:49:37 +0300 |
commit | 278cc757b3146be68376318999415b97220c4d92 (patch) | |
tree | de44a0832bad1392f9b5347144a12af5c9039bf1 /tecmem.c | |
parent | 415ef16ae3b6b32652135a219b12a074dff265d9 (diff) | |
download | videoteco-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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){ |