diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-08-26 09:24:25 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-08-26 09:24:25 +0200 |
commit | 7c0fb2e980af93923f2071e1af087010962e06bd (patch) | |
tree | 622e5a8f57901f9f6dbccec081766c29cffbf08e /plugin_huawei.c | |
parent | 181cec4348da40331b3e8ab365732c025ec149b2 (diff) | |
download | lcd4linux-7c0fb2e980af93923f2071e1af087010962e06bd.tar.gz |
Import upstream version 0.11.0~svn1158
Diffstat (limited to 'plugin_huawei.c')
-rw-r--r-- | plugin_huawei.c | 9 |
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) { |