changeset 765:75595941b786

sms_tlp.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 00:19:57 +0000
parents 2d8cb1c85e01
children d10585d665b4
files gsm-fw/g23m-gsm/sms/Makefile gsm-fw/g23m-gsm/sms/sms_tlp.c
diffstat 2 files changed, 17 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/g23m-gsm/sms/Makefile	Sun Oct 12 00:12:34 2014 +0000
+++ b/gsm-fw/g23m-gsm/sms/Makefile	Sun Oct 12 00:19:57 2014 +0000
@@ -6,7 +6,7 @@
 	-I../../cdginc
 
 OBJS=	sms_cp.o sms_csf.o sms_em.o sms_for.o sms_pei.o sms_rl.o sms_time.o \
-	sms_tlf.o
+	sms_tlf.o sms_tlp.o
 
 all:	${OBJS}
 
--- a/gsm-fw/g23m-gsm/sms/sms_tlp.c	Sun Oct 12 00:12:34 2014 +0000
+++ b/gsm-fw/g23m-gsm/sms/sms_tlp.c	Sun Oct 12 00:19:57 2014 +0000
@@ -20,7 +20,11 @@
 */
 #ifndef SMS_TLP_C
 #define SMS_TLP_C
- 
+
+#include "config.h"
+#include "fixedconf.h"
+#include "condat-features.h"
+
 #define ENTITY_SMS
 
 /*==== INCLUDES ===================================================*/
@@ -57,10 +61,10 @@
 
 /* Implements Measure# 7 */
 /*
-+----------------------------------------------------------------------------------+
-| PROJECT : GSM-PS (8410)       MODULE  : SMS_TLP                                  |
-| STATE   : code                ROUTINE : tl_sim_rd_record_update_state            |
-+----------------------------------------------------------------------------------+
++------------------------------------------------------------------------------+
+| PROJECT : GSM-PS (8410)       MODULE  : SMS_TLP                              |
+| STATE   : code                ROUTINE : tl_sim_rd_record_update_state        |
++------------------------------------------------------------------------------+
 
   PURPOSE : This routine process primitive SIM_READ_RECORD_CONF for the 
             cases MMI_FIND_FIRST and MMI_FIND_NEXT
@@ -99,7 +103,6 @@
 }
 
 
-
 /*
 +--------------------------------------------------------------------+
 | PROJECT : GSM-PS (8410)       MODULE  : SMS_CP                     |
@@ -638,7 +641,7 @@
             }
             else
             {
-             rec_num = delete_req->rec_num;
+              rec_num = delete_req->rec_num;
             }
           }
           
@@ -660,7 +663,6 @@
           {         
             tl_mnsms_delete_cnf (delete_req->mem_type, rec_num, 0, SMS_CAUSE_INV_INDEX);
           }
-
           break;
 
         case MEM_SR:
@@ -702,7 +704,7 @@
                                UBYTE *data,
                                USHORT error)
 {
- GET_INSTANCE_DATA;
+  GET_INSTANCE_DATA;
   PALLOC (read_cnf, MNSMS_READ_CNF); /* T_MNSMS_READ_CNF */
 
   read_cnf->mem_type = mem_type;
@@ -1722,7 +1724,7 @@
 LOCAL void tl_sim_update_rec_cnf_mmi (
                          T_SIM_UPDATE_RECORD_CNF *update_cnf)
 {
-   GET_INSTANCE_DATA;
+  GET_INSTANCE_DATA;
   UBYTE next_rec_num=0,record;
   TRACE_FUNCTION ("tl_sim_update_rec_cnf_mmi()");
 
@@ -1953,7 +1955,7 @@
 
 LOCAL void tl_sim_update_rec_cnf_net (T_SIM_UPDATE_RECORD_CNF *update_cnf)
 {
-	GET_INSTANCE_DATA;
+  GET_INSTANCE_DATA;
   UBYTE record;
   UBYTE data[SIZE_EF_SMS];
 
@@ -2848,7 +2850,7 @@
            /*TR2M TIM EXPIRE -ACI NOT RESPONDED WITHIN TR2M */
      	}
      break;
-	 
+
     default:
         /* INVALID SMS TL STATE IN MNSMS_OTA_MESSAGE_RES */
         break;
@@ -2856,13 +2858,13 @@
    }
  }
   PFREE (mnsms_OTA_message_res);
- 
+
 }
 #endif /* End OTA */
 /*
 +--------------------------------------------------------------------+
 | PROJECT : GSM-PS (8410)       MODULE  : SMS_TLP                    |
-| STATE   : code                ROUTINE : tl_mnsms_retrans_req        |
+| STATE   : code                ROUTINE : tl_mnsms_retrans_req       |
 +--------------------------------------------------------------------+
 
   PURPOSE : Handles the primitive MNSMS_RETRANS_REQ. This will support user