summaryrefslogtreecommitdiff
path: root/CommonCode.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-28 10:31:16 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-28 10:31:16 +0000
commitce4f1b11b05dfe6e62d7d99efba9a6a1ccd119ad (patch)
treeca6773b341a5846c7f7a903cf4dc79f740876680 /CommonCode.c
parent1fbded9d3afd766e861577ba08d0f86f952de64e (diff)
parent7a61c594e1bf9fd62e156d3d8db772fe7c4bfd03 (diff)
Update upstream source from tag 'upstream/6.0.24.25'
Update to upstream version '6.0.24.25' with Debian dir c5f88a7af8f9d384ddf818129c71d1a6a7836522
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;