diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-01-10 05:14:53 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-01-10 05:14:53 +0000 |
commit | fbc0b497567fecd2818f4a497843f62d1be6d70c (patch) | |
tree | a08697bc3dcd3dbe25df196c19c788aa8bb8a6c5 /src/gsmd/vendor_bcm.c | |
parent | 9567f52dbf14097d8e19d0d858594d971aa725ec (diff) |
gsmd: eliminate gcc warnings (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/gsmd/vendor_bcm.c')
-rw-r--r-- | src/gsmd/vendor_bcm.c | 9 |
1 files changed, 3 insertions, 6 deletions
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 <gsmd/vendorplugin.h> #include <gsmd/unsolicited.h> -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; |