Applied changes of OpenBSC main branch. LCR now works with OpenBSC main branch.
[lcr.git] / gsm.cpp
diff --git a/gsm.cpp b/gsm.cpp
index a26426c..f9c9914 100644 (file)
--- a/gsm.cpp
+++ b/gsm.cpp
@@ -10,8 +10,8 @@
 \*****************************************************************************/ 
 
 #include "main.h"
+
 extern "C" {
-#include "openbsc/gsm_data.h"
 #include "openbsc/mncc.h"
 #include "openbsc/trau_frame.h"
 #include "openbsc/select.h"
@@ -26,6 +26,7 @@ extern  int     AF_ISDN;
 #define PF_ISDN AF_ISDN
 }
 
+
 struct lcr_gsm *gsm = NULL;
 
 static unsigned int new_callref = 1;
@@ -1609,9 +1610,9 @@ int gsm_exit(int rc)
                if (gsm->network)
                        shutdown_net((struct gsm_network *)gsm->network);
                /* free network */
-               if (gsm->network) {
-                       free((struct gsm_network *)gsm->network); /* TBD */
-               }
+//             if (gsm->network) {
+//                     free((struct gsm_network *)gsm->network); /* TBD */
+//             }
                free(gsm);
                gsm = NULL;
        }