From 20adbe01bb4d7490436d0294de37b6c12624143b Mon Sep 17 00:00:00 2001 From: erin_yueh Date: Mon, 18 Feb 2008 09:42:28 +0000 Subject: gsmd: bug fixed for some changes (Sudharshan S, Paulius Zaleckas) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4084 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/util/shell.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/util') diff --git a/src/util/shell.c b/src/util/shell.c index 0601e6d..1bfff3e 100644 --- a/src/util/shell.c +++ b/src/util/shell.c @@ -392,28 +392,23 @@ static int net_msghandler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh) static int phone_msghandler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh) { - char *payload; + char *payload = (char *)gmh + sizeof(*gmh); int *intresult = (void *)gmh + sizeof(*gmh); switch (gmh->msg_subtype) { case GSMD_PHONE_GET_IMSI: - payload = (char *)gmh + sizeof(*gmh); printf("imsi <%s>\n", payload); break; case GSMD_PHONE_GET_MANUF: - payload = (char *)gmh + sizeof(*gmh); printf("manufacturer: %s\n", payload); break; case GSMD_PHONE_GET_MODEL: - payload = (char *)gmh + sizeof(*gmh); printf("model: %s\n", payload); break; case GSMD_PHONE_GET_REVISION: - payload = (char *)gmh + sizeof(*gmh); printf("revision: %s\n", payload); break; case GSMD_PHONE_GET_SERIAL: - payload = (char *)gmh + sizeof(*gmh); printf("serial: %s\n", payload); break; case GSMD_PHONE_POWERUP: -- cgit v1.2.3