From a4640c8a04f2575f97c0ee92ebc5f39643c18040 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 12 Oct 2011 02:31:23 +0200 Subject: fixed some compiler warnings and two very obvious pointer bugs --- c_src/slang_drv.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'c_src') diff --git a/c_src/slang_drv.c b/c_src/slang_drv.c index 01716c7..e46aa9d 100644 --- a/c_src/slang_drv.c +++ b/c_src/slang_drv.c @@ -1,10 +1,11 @@ #include #include -#include "erl_driver.h" -#include #include +#include +#include +#include #if (SLANG_VERSION < 10400 ) #define SLsmg_Char_Type unsigned short @@ -232,7 +233,6 @@ SLsmg_Char_Type *decode_smg_char_type(char **buf) { static SLsmg_Char_Type mbuf[256]; int i; - char *b = *buf; int len = get_int32(*buf); *buf+=4; for(i=0; i