mirror of git://git.sysmocom.de/ofono
Fix: Dead Assignments
This commit is contained in:
parent
08b26238c1
commit
d3c2535fae
|
@ -86,12 +86,11 @@ static void at_call_barring_query(struct ofono_call_barring *cb,
|
||||||
GAtChat *chat = ofono_call_barring_get_data(cb);
|
GAtChat *chat = ofono_call_barring_get_data(cb);
|
||||||
struct cb_data *cbd = cb_data_new(callback, data);
|
struct cb_data *cbd = cb_data_new(callback, data);
|
||||||
char buf[64];
|
char buf[64];
|
||||||
int len;
|
|
||||||
|
|
||||||
if (!cbd || strlen(lock) != 2)
|
if (!cbd || strlen(lock) != 2)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
len = sprintf(buf, "AT+CLCK=\"%s\",2", lock);
|
sprintf(buf, "AT+CLCK=\"%s\",2", lock);
|
||||||
|
|
||||||
if (g_at_chat_send(chat, buf, clck_prefix,
|
if (g_at_chat_send(chat, buf, clck_prefix,
|
||||||
clck_query_cb, cbd, g_free) > 0)
|
clck_query_cb, cbd, g_free) > 0)
|
||||||
|
@ -134,8 +133,7 @@ static void at_call_barring_set(struct ofono_call_barring *cb, const char *lock,
|
||||||
",\"%s\"", passwd);
|
",\"%s\"", passwd);
|
||||||
/* Assume cls == 7 means use defaults */
|
/* Assume cls == 7 means use defaults */
|
||||||
if (cls != 7)
|
if (cls != 7)
|
||||||
len += snprintf(buf + len, sizeof(buf) - len,
|
snprintf(buf + len, sizeof(buf) - len, ",%i", cls);
|
||||||
",%i", cls);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_at_chat_send(chat, buf, none_prefix,
|
if (g_at_chat_send(chat, buf, none_prefix,
|
||||||
|
|
|
@ -617,7 +617,6 @@ static void cring_notify(GAtResult *result, gpointer user_data)
|
||||||
GAtResultIter iter;
|
GAtResultIter iter;
|
||||||
const char *line;
|
const char *line;
|
||||||
int type;
|
int type;
|
||||||
struct ofono_call *call;
|
|
||||||
|
|
||||||
dump_response("cring_notify", TRUE, result);
|
dump_response("cring_notify", TRUE, result);
|
||||||
|
|
||||||
|
@ -654,7 +653,7 @@ static void cring_notify(GAtResult *result, gpointer user_data)
|
||||||
type = 9;
|
type = 9;
|
||||||
|
|
||||||
/* Generate an incoming call */
|
/* Generate an incoming call */
|
||||||
call = create_call(vc, type, 1, 4, NULL, 128, 2);
|
create_call(vc, type, 1, 4, NULL, 128, 2);
|
||||||
|
|
||||||
/* We have a call, and call type but don't know the number and
|
/* We have a call, and call type but don't know the number and
|
||||||
* must wait for the CLIP to arrive before announcing the call.
|
* must wait for the CLIP to arrive before announcing the call.
|
||||||
|
|
|
@ -823,6 +823,7 @@ static void test_prepare_concat()
|
||||||
g_print("PDU Len: %ld\n", len);
|
g_print("PDU Len: %ld\n", len);
|
||||||
|
|
||||||
ok = sms_decode(pdu, len, TRUE, len - 1, &decoded);
|
ok = sms_decode(pdu, len, TRUE, len - 1, &decoded);
|
||||||
|
g_assert(ok);
|
||||||
|
|
||||||
if (g_test_verbose())
|
if (g_test_verbose())
|
||||||
g_print("Pdu udl: %d\n", (int)decoded.submit.udl);
|
g_print("Pdu udl: %d\n", (int)decoded.submit.udl);
|
||||||
|
|
Loading…
Reference in New Issue