summaryrefslogtreecommitdiff
path: root/AGWAPI.c
diff options
context:
space:
mode:
authorg8bpq <john.wiseman@cantab.net>2023-06-21 08:21:04 +0100
committerg8bpq <john.wiseman@cantab.net>2023-06-21 08:21:04 +0100
commit75b5bcc9a97b38c6c0c210bf14fabad9cadf704a (patch)
tree913d37a3946a40e9694833ed36fd5a8e02a23d42 /AGWAPI.c
parenta21121fbfce48307740e6ade5f4f16531501b053 (diff)
6.0.23.7623.77
Diffstat (limited to 'AGWAPI.c')
-rw-r--r--AGWAPI.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/AGWAPI.c b/AGWAPI.c
index dd85c48..c28d8f3 100644
--- a/AGWAPI.c
+++ b/AGWAPI.c
@@ -276,9 +276,9 @@ VOID Poll_AGW()
}
-SOCKADDR_IN local_sin; /* Local socket - internet style */
+static SOCKADDR_IN local_sin; /* Local socket - internet style */
-PSOCKADDR_IN psin;
+static PSOCKADDR_IN psin;
BOOL AGWAPIInit()
@@ -343,19 +343,19 @@ BOOL AGWAPIInit()
{
if (PORT->Hide == 0)
{
- VisiblePortToRealPort[v++] = i - 1;
- memcpy(ptr,"Port",4);
- ptr += sprintf(ptr, "%d", i);
- memcpy(ptr, " with ", 6);
- ptr+=6;
- memcpy(ptr, PORT->PORTDESCRIPTION, 29); // ";"
- ptr+=29;
-
- while (*(--ptr) == ' ') {}
+ VisiblePortToRealPort[v++] = i - 1;
+ memcpy(ptr,"Port",4);
+ ptr += sprintf(ptr, "%d", i);
+ memcpy(ptr, " with ", 6);
+ ptr+=6;
+ memcpy(ptr, PORT->PORTDESCRIPTION, 29); // ";"
+ ptr+=29;
+
+ while (*(--ptr) == ' ') {}
- ptr++;
+ ptr++;
- *(ptr++)=';';
+ *(ptr++)=';';
}
i++;
PORT=PORT->PORTPOINTER;
@@ -364,16 +364,15 @@ BOOL AGWAPIInit()
*(ptr)=0;
AGWMONVECPTR->HOSTAPPLFLAGS = 0x80; // Requext Monitoring
-
+
return TRUE;
}
-
int SetUpHostSessions()
{
int Stream, i;
if (AGWMask == 0) return 0;
-
+
for (i = 1; i <= AGWSessions; i++)
{
strcpy(pgm, "AGW");