aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_huawei.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 05:12:30 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-07-27 05:12:30 +0000
commit7318d07f8950d3469d76537ce1d96f863085ba7c (patch)
tree361d3b09b28e6847784781c70323af5dab2745c3 /plugin_huawei.c
parent616665a32d0e4eb368c6346168e91cfeda42583f (diff)
downloadlcd4linux-7318d07f8950d3469d76537ce1d96f863085ba7c.tar.gz
various compiler warnings fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_huawei.c')
-rw-r--r--plugin_huawei.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugin_huawei.c b/plugin_huawei.c
index fbe73b8..47ee7ec 100644
--- a/plugin_huawei.c
+++ b/plugin_huawei.c
@@ -502,7 +502,7 @@ static char *huawei_send_receive(const char *cmd)
static int huawei_configured(void)
{
- int port_exists, ret, bytes;
+ int port_exists, ret;
static int connected = -1, configured = 0;
char *buf;
@@ -560,7 +560,6 @@ static int huawei_configured(void)
/* modem initialization */
if (connected == 1 && configured != 1) {
buf = huawei_send_receive(INIT_STRING);
- bytes = strlen(buf);
if (strncmp(buf, "OK", 2) == 0) {
configured = 1;
@@ -576,11 +575,9 @@ static int huawei_configured(void)
static void huawei_read_quality(const char *cmd)
{
- int bytes;
char *buf;
buf = huawei_send_receive(cmd);
- bytes = strlen(buf);
if (strncmp(buf, "+CSQ: ", 6) == 0) {
@@ -609,11 +606,9 @@ static void huawei_read_quality(const char *cmd)
static void huawei_read_sysinfo(const char *cmd)
{
- int bytes;
char *buf;
buf = huawei_send_receive(cmd);
- bytes = strlen(buf);
if (strncmp(buf, "^SYSINFO:", 9) == 0) {
@@ -750,12 +745,10 @@ static void huawei_read_operator(const char *cmd)
static void huawei_read_flowreport(const char *cmd)
{
char *buf;
- int bytes;
static unsigned long long int prev_tx_flow = 0, prev_rx_flow = 0;
static unsigned long int prev_ds_time = 0;
buf = huawei_send_receive(cmd);
- bytes = strlen(buf);
if (strncmp(buf, "^DSFLOWQRY:", 11) == 0) {