summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2011-12-29 15:31:34 +0100
committerPaulK <contact@paulk.fr>2011-12-29 15:31:34 +0100
commite27491dffbe24c398c7e682239d9a3044053908e (patch)
tree8c53e76978872782a4f510f3e85b92b1f17fcc5a /net.c
parentb2c23f06ffb49f4a9f342c39928c41882d96e282 (diff)
downloadhardware_replicant_libsamsung-ril-e27491dffbe24c398c7e682239d9a3044053908e.tar.gz
hardware_replicant_libsamsung-ril-e27491dffbe24c398c7e682239d9a3044053908e.tar.bz2
hardware_replicant_libsamsung-ril-e27491dffbe24c398c7e682239d9a3044053908e.zip
Send back network type anyway
Diffstat (limited to 'net.c')
-rw-r--r--net.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net.c b/net.c
index b05c9fc..6816ce1 100644
--- a/net.c
+++ b/net.c
@@ -160,10 +160,7 @@ void ipc2ril_reg_state_resp(struct ipc_net_regist *netinfo, char *response[15])
asprintf(&response[0], "%d", reg_state);
asprintf(&response[1], "%x", netinfo->lac);
asprintf(&response[2], "%x", netinfo->cid);
- if(act > 0)
- asprintf(&response[3], "%d", act);
- else
- response[3] = NULL;
+ asprintf(&response[3], "%d", act);
}
/**