summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/gsmd/usock.h2
-rw-r--r--src/gsmd/usock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h
index cfff571..21ab54e 100644
--- a/include/gsmd/usock.h
+++ b/include/gsmd/usock.h
@@ -162,7 +162,7 @@ enum gsmd_msg_network {
GSMD_NETWORK_PREF_DEL = 12,
GSMD_NETWORK_PREF_ADD = 13,
GSMD_NETWORK_PREF_SPACE = 14,
- GSMD_NETWORK_QUERY_REG = 15,
+ GSMD_NETWORK_QUERY_REG = 15,
};
enum gsmd_msg_sms {
diff --git a/src/gsmd/usock.c b/src/gsmd/usock.c
index b6f42dd..0faef65 100644
--- a/src/gsmd/usock.c
+++ b/src/gsmd/usock.c
@@ -674,7 +674,7 @@ static int network_query_reg_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp)
if (strncmp(resp, "+CREG: ", 7))
return -EINVAL;
- resp += 7;
+
er = extrsp_parse(gsmd_tallocs, resp);
if(!er)
return -ENOMEM;
personal git repositories of Harald Welte. Your mileage may vary