summaryrefslogtreecommitdiff
path: root/Cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'Cmd.c')
-rw-r--r--Cmd.c41
1 files changed, 1 insertions, 40 deletions
diff --git a/Cmd.c b/Cmd.c
index 7eb6061..42869d5 100644
--- a/Cmd.c
+++ b/Cmd.c
@@ -905,18 +905,12 @@ int checkifService(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, s
BOOL Stay = FALSE;
char * ptr, *Context;
int i;
-<<<<<<< Updated upstream
-
- ptr = strtok_s(CmdTail, " ", &Context);
-||||||| Stash base
-=======
char TailCopy[256];
strcpy(TailCopy, CmdTail);
ptr = strtok_s(TailCopy, " ", &Context);
->>>>>>> Stashed changes
// see if any param. if longer than two chars treat as remote node
@@ -2677,14 +2671,8 @@ NoPort:
// SEE IF CALL TO ANY OF OUR HOST SESSIONS - UNLESS DIGIS SPECIFIED
-<<<<<<< Updated upstream
- if (axcalls[7] == 0 && axcalls[9] )
-||||||| Stash base
- if (axcalls[7] == 0)
-=======
// if (axcalls[7] == 0 && axcalls[9])
if (axcalls[7] == 0)
->>>>>>> Stashed changes
{
// If this connect is as a result of a command alias, don't check appls or we will loop
@@ -2735,23 +2723,6 @@ NoPort:
}
}
-<<<<<<< Updated upstream
- // if no digis see if connect to known node. But now could have a single numeric param as a service number (Paula's Netromx)
- // cmdCopy is command tail (after call)
-
- // Make sure field is numeric
-
- i = 0;
-
- while (cmdCopy[i] >= '0' && cmdCopy[i]<= '9')
- i++;
-
- if (cmdCopy[i] != ' ')
- goto Downlink;
- else
-||||||| Stash base
- if (axcalls[7] == 0)
-=======
// if no digis see if connect to known node.
// But now could have a single numeric param as a service number (Paula's Netromx)
@@ -2760,22 +2731,13 @@ NoPort:
// Make sure field is numeric
if (cmdCopy[0] != ' ')
->>>>>>> Stashed changes
{
-<<<<<<< Updated upstream
- if (i > 0) // Some digits
- {
- haveService = 1;
- Service = atoi(cmdCopy);
-||||||| Stash base
- // SEE IF CALL TO ANOTHER NODE
-=======
i = 0;
while (cmdCopy[i] >= '0' && cmdCopy[i]<= '9')
i++;
- if (cmdCopy[i] != ' ')
+ if (i && cmdCopy[i] != ' ') // have an all digit param = probably a service
goto Downlink;
else
{
@@ -2784,7 +2746,6 @@ NoPort:
haveService = 1;
Service = atoi(cmdCopy);
}
->>>>>>> Stashed changes
}
}