diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-15 15:03:18 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-07-15 15:03:18 +0200 |
commit | 1c38f82dddac6eaf41d27649bdf50057a1bb543b (patch) | |
tree | f46a06c2f4064d5c6947a9afdbbb2a02a8490004 /tecmem.c | |
parent | f27b61a79ace02f2a89bac9ed55e3879b98c30ad (diff) | |
download | videoteco-fork-1c38f82dddac6eaf41d27649bdf50057a1bb543b.tar.gz |
fixed pointer formatting on systems where sizeof(int) != sizeof(void*)
this avoids most of the remaining compiler warnings
Diffstat (limited to 'tecmem.c')
-rw-r--r-- | tecmem.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -227,8 +227,8 @@ register int i; mp = (struct memblock *)( addr - sizeof(struct memblock) ); if(mp->type != type){ - printf("\nTEC_RELEASE: TYPE Mismatch: Supplied %d Stored %d addr 0x%x\n", - type,mp->type,(unsigned int)addr); + printf("\nTEC_RELEASE: TYPE Mismatch: Supplied %d Stored %d addr %p\n", + type, mp->type, addr); #ifdef UNIX kill(getpid(),SIGQUIT); #endif @@ -278,9 +278,8 @@ register int i; mp = (struct memblock *)( addr - sizeof(struct memblock) ); if(mp->type != type){ - printf( - "\nTYPE Mismatch: Supplied %d Stored %d addr %x '%s'\n", - type,mp->type,(unsigned int)addr,message); + printf("\nTYPE Mismatch: Supplied %d Stored %d addr %p '%s'\n", + type, mp->type, addr, message); exit(1); }/* End IF */ |