From c42b78543b0cbb172f528c62a31e0a6e3ecc40cf Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Thu, 23 Jun 2005 16:46:06 +0000 Subject: [PATCH] Some warnings --- include/phoned.h | 8 ++++---- phoned/modem.c | 2 +- phoned/modems/rockwell.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/phoned.h b/include/phoned.h index 3554c46..88a962d 100644 --- a/include/phoned.h +++ b/include/phoned.h @@ -3,7 +3,7 @@ * (C)2005, Dan Ponte * BSDL w/ advert. */ -/* $Amigan: phoned/include/phoned.h,v 1.25 2005/06/22 22:01:47 dcp1990 Exp $ */ +/* $Amigan: phoned/include/phoned.h,v 1.26 2005/06/23 16:46:06 dcp1990 Exp $ */ #include /* fugly, I know... */ #define VERSION "0.1" #define LOGFILE "-" @@ -130,12 +130,12 @@ typedef struct mod_t { int deffuncs; int (*init)(void); int (*destroy)(void); - mod_res_t (*evalrc)(char *result); + mod_res_t (*evalrc)(char*); void (*pickup)(void); void (*hangup)(void); - void (*sdev)(enum device_t d); + void (*sdev)(enum device_t); void (*voice_init)(void); - void (*set_rings)(short rings); + void (*set_rings)(int); } modem_t; typedef enum stat { init = 0, diff --git a/phoned/modem.c b/phoned/modem.c index e154a59..180c4c4 100644 --- a/phoned/modem.c +++ b/phoned/modem.c @@ -166,7 +166,7 @@ void modem_hread(char* cbuf) if((buffer[0] == '8' && buffer[1] == '0') || (buffer[0] == '0' && buffer[1] == '4')) doing_cid = 1; if(cbuf[0] == '\n') { - /* lprintf(debug, "Modem said %s", buffer); */ + lprintf(debug, "Modem said %s", buffer); if(doing_cid) { cid_t *rc; rc = parse_cid(buffer); diff --git a/phoned/modems/rockwell.c b/phoned/modems/rockwell.c index 7cd2c66..078be74 100644 --- a/phoned/modems/rockwell.c +++ b/phoned/modems/rockwell.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Amigan: phoned/phoned/modems/rockwell.c,v 1.5 2005/06/23 02:11:08 dcp1990 Exp $ */ +/* $Amigan: phoned/phoned/modems/rockwell.c,v 1.6 2005/06/23 16:46:10 dcp1990 Exp $ */ #include #include #include @@ -144,7 +144,7 @@ void rw_voice_init(void) rw_sdev(dialup); } void rw_set_rings(rings) - short rings; + int rings; { char buf[20]; sprintf(buf, "AT S0=%d", rings);