changeset 752:ec171ca4afb4

sim_fkt.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 11 Oct 2014 20:48:22 +0000
parents b15d4b9d49c4
children 7f68d2ab0d33
files gsm-fw/g23m-gsm/sim/Makefile gsm-fw/g23m-gsm/sim/sim_fkt.c
diffstat 2 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/g23m-gsm/sim/Makefile	Sat Oct 11 20:42:58 2014 +0000
+++ b/gsm-fw/g23m-gsm/sim/Makefile	Sat Oct 11 20:48:22 2014 +0000
@@ -5,7 +5,7 @@
 CPPFLAGS=-I. -I../../include -I../../include/condat -I../../gpf/inc \
 	-I../../cdginc
 
-OBJS=	sim_app.o sim_em.o
+OBJS=	sim_app.o sim_em.o sim_fkt.o
 
 all:	${OBJS}
 
--- a/gsm-fw/g23m-gsm/sim/sim_fkt.c	Sat Oct 11 20:42:58 2014 +0000
+++ b/gsm-fw/g23m-gsm/sim/sim_fkt.c	Sat Oct 11 20:48:22 2014 +0000
@@ -22,6 +22,10 @@
 #ifndef SIM_FKT_C
 #define SIM_FKT_C
 
+#include "config.h"
+#include "fixedconf.h"
+#include "condat-features.h"
+
 #define ENTITY_SIM
 
 /*==== INCLUDES ===================================================*/
@@ -365,7 +369,7 @@
     sw1sw2 = SIM_Increase    ((UBYTE *)response,
                 (UBYTE *)data,
                 &size);
-	
+
   return FKT_convert_error (sw1sw2, size);
 }
 
@@ -421,7 +425,7 @@
                 offset,
                 length,
                 &size);
-	
+
   return FKT_convert_error (sw1sw2, size);
 }
 
@@ -1270,7 +1274,7 @@
      USHORT    size = 0;
      USHORT    sw1sw2;
      USHORT    error;
-	 
+
 
      TRACE_FUNCTION ("FKT_Envelope()");
   
@@ -1290,11 +1294,11 @@
   {
     if (data_out AND out_length)
     {
-	    if (sim_data.sim_data_len > 0)
+      if (sim_data.sim_data_len > 0)
       {
-       		stk_l_cmd = sim_data.sim_data_len << 3;
-        	out_length = (USHORT) (stk_l_cmd >> 3);
-          error = FKT_GetResponse (data_out, out_length);
+	stk_l_cmd = sim_data.sim_data_len << 3;
+	out_length = (USHORT) (stk_l_cmd >> 3);
+        error = FKT_GetResponse (data_out, out_length);
       }
     }
   }