From 8667596ab449f84d735b0fd4181aa0d3c6a7f94d Mon Sep 17 00:00:00 2001
From: Moises Silva <moy@sangoma.com>
Date: Tue, 2 Feb 2010 19:11:07 +0000
Subject: [PATCH] Windows build fixes, inline and unsigned stuff

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1019 a93c3328-9c30-0410-af19-c9cd2b2d52af
---
 libs/freetdm/src/ftdm_io.c                            | 2 +-
 libs/freetdm/src/ftmod/ftmod_sangoma_boost/sigboost.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/freetdm/src/ftdm_io.c b/libs/freetdm/src/ftdm_io.c
index baceacddbc..a1fee89395 100644
--- a/libs/freetdm/src/ftdm_io.c
+++ b/libs/freetdm/src/ftdm_io.c
@@ -3249,7 +3249,7 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_remove_from_group(ftdm_group_t* group, ft
 
 static ftdm_status_t ftdm_group_add_channels(const char* name, ftdm_span_t* span, int currindex)
 {
-	int chan_index = 0;
+	unsigned chan_index = 0;
 
 	ftdm_assert_return(strlen(name) > 0, FTDM_FAIL, "Invalid group name provided\n");
 	ftdm_assert_return(currindex >= 0, FTDM_FAIL, "Invalid current channel index provided\n");
diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/sigboost.h b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/sigboost.h
index f115f1e493..9c3be35260 100644
--- a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/sigboost.h
+++ b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/sigboost.h
@@ -162,12 +162,12 @@ typedef struct
 #pragma pack()
 
 
-static inline int boost_full_event(int event_id)
+static __inline__ int boost_full_event(int event_id)
 {
         switch (event_id) {
         case SIGBOOST_EVENT_CALL_START:
         case SIGBOOST_EVENT_DIGIT_IN:
-	case SIGBOOST_EVENT_CALL_PROGRESS:
+		case SIGBOOST_EVENT_CALL_PROGRESS:
                 return 1;
         default:
                 break;