summaryrefslogtreecommitdiff
path: root/CommonCode.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-28 10:31:09 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-28 10:31:09 +0000
commit7a61c594e1bf9fd62e156d3d8db772fe7c4bfd03 (patch)
tree19d55bf6fcd52ce7bd67c10591c04a3cd2549b56 /CommonCode.c
parent2ccd083256a3a05ae1f402a0ef259fbfff709088 (diff)
New upstream version 6.0.24.25upstream/6.0.24.25
Diffstat (limited to 'CommonCode.c')
-rw-r--r--CommonCode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/CommonCode.c b/CommonCode.c
index d28cefa..31e4ebc 100644
--- a/CommonCode.c
+++ b/CommonCode.c
@@ -49,7 +49,7 @@ extern struct CONFIGTABLE xxcfg;
#endif
-struct TNCINFO * TNCInfo[70]; // Records are Malloc'd
+struct TNCINFO * TNCInfo[71]; // Records are Malloc'd
extern int ReportTimer;
@@ -3516,8 +3516,6 @@ int __sync_lock_test_and_set(int * ptr, int val)
#endif // __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
#endif // MACBPQ
-
-
void GetSemaphore(struct SEM * Semaphore, int ID)
{
//
@@ -5232,7 +5230,7 @@ void SendDataToPktMap(char *Msg)
// TCP
- Mode = Modenames[TNC->Hardware];
+ Mode = Modenames[TNC->Hardware - 1];
if (TNC->CONNECTED)
Active = 1;