diff options
Diffstat (limited to 'src/libgsmd')
-rw-r--r-- | src/libgsmd/libgsmd.c | 3 | ||||
-rw-r--r-- | src/libgsmd/libgsmd_network.c | 2 | ||||
-rw-r--r-- | src/libgsmd/libgsmd_sms.c | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/libgsmd/libgsmd.c b/src/libgsmd/libgsmd.c index b9db59a..36e49a6 100644 --- a/src/libgsmd/libgsmd.c +++ b/src/libgsmd/libgsmd.c @@ -32,9 +32,11 @@ #include <gsmd/usock.h> #include <libgsmd/libgsmd.h> +#include <libgsmd/event.h> #include "lgsm_internals.h" +#if 0 static int lgsm_get_packet(struct lgsm_handle *lh) { static char buf[GSMD_MSGSIZE_MAX]; @@ -56,6 +58,7 @@ static int lgsm_get_packet(struct lgsm_handle *lh) return 0; } +#endif static int lgsm_open_backend(struct lgsm_handle *lh, const char *device) { diff --git a/src/libgsmd/libgsmd_network.c b/src/libgsmd/libgsmd_network.c index 5551de3..eb45169 100644 --- a/src/libgsmd/libgsmd_network.c +++ b/src/libgsmd/libgsmd_network.c @@ -38,6 +38,7 @@ int lgsm_get_netreg_state(struct lgsm_handle *lh, enum lgsm_netreg_state *state) { *state = lh->netreg_state; + return 0; } int lgsm_oper_get(struct lgsm_handle *lh) @@ -139,7 +140,6 @@ int lgsm_voicemail_set(struct lgsm_handle *lh, const char *number) { struct gsmd_msg_hdr *gmh; struct gsmd_voicemail *vmail; - int rc; gmh = lgsm_gmh_fill(GSMD_MSG_NETWORK, GSMD_NETWORK_VMAIL_SET, sizeof(*vmail)); diff --git a/src/libgsmd/libgsmd_sms.c b/src/libgsmd/libgsmd_sms.c index 81293ee..b13dacb 100644 --- a/src/libgsmd/libgsmd_sms.c +++ b/src/libgsmd/libgsmd_sms.c @@ -135,7 +135,7 @@ int lgsm_sms_send(struct lgsm_handle *lh, /* FIXME: only support PDU mode */ struct gsmd_msg_hdr *gmh; struct gsmd_sms_submit *gss; - int i, rc; + int rc; gmh = lgsm_gmh_fill(GSMD_MSG_SMS, GSMD_SMS_SEND, sizeof(*gss)); @@ -258,7 +258,6 @@ int packing_7bit_character(const char *src, struct lgsm_sms *dest) { int i,j = 0; unsigned char ch1, ch2; - char tmp[2]; int shift = 0; dest->alpha = ALPHABET_DEFAULT; |