diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-01-10 05:14:53 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-01-10 05:14:53 +0000 |
commit | fbc0b497567fecd2818f4a497843f62d1be6d70c (patch) | |
tree | a08697bc3dcd3dbe25df196c19c788aa8bb8a6c5 /src/libgsmd | |
parent | 9567f52dbf14097d8e19d0d858594d971aa725ec (diff) |
gsmd: eliminate gcc warnings (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3807 99fdad57-331a-0410-800a-d7fa5415bdb3
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; |