From fbc0b497567fecd2818f4a497843f62d1be6d70c Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Thu, 10 Jan 2008 05:14:53 +0000 Subject: gsmd: eliminate gcc warnings (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/vendor_bcm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/gsmd/vendor_bcm.c') diff --git a/src/gsmd/vendor_bcm.c b/src/gsmd/vendor_bcm.c index 9bcfa1a..6ccc2e2 100644 --- a/src/gsmd/vendor_bcm.c +++ b/src/gsmd/vendor_bcm.c @@ -35,7 +35,7 @@ #include #include -static int mrdy_parse(char *buf, int len, const char *param, +static int mrdy_parse(const char *buf, int len, const char *param, struct gsmd *g) { int status = atoi(param); @@ -70,11 +70,9 @@ static int mrdy_parse(char *buf, int len, const char *param, return 0; } -static int mtsmenu_parse(char *buf, int len, const char *param, +static int mtsmenu_parse(const char *buf, int len, const char *param, struct gsmd *g) { - char *tok, *param_tmp; - struct mtsmenu *mtsmenu; DEBUGP("mtsmenu_parse param=`%s'\n", param); return 0; @@ -95,8 +93,7 @@ static int bcm_detect(struct gsmd *g) static int bcm_initsettings(struct gsmd *g) { - int rc; - struct gsmd_atcmd *cmd; + int rc = 0; /* bcm sometimes sends LFCR instead of CRLF (eg *MTSMENU message) */ g->llp.flags |= LGSM_ATCMD_F_LFCR; -- cgit v1.2.3