From 12817599b7aa84ab0fc31ad1ef86b953f7e94444 Mon Sep 17 00:00:00 2001 From: Di-Shi Sun Date: Fri, 15 Nov 2024 11:05:22 -0500 Subject: [PATCH] Fixed multiple definition of OSPVBlockingFlag. --- src/osptnprobe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osptnprobe.c b/src/osptnprobe.c index 786a047..18b9c1c 100644 --- a/src/osptnprobe.c +++ b/src/osptnprobe.c @@ -107,7 +107,7 @@ enum socket_stats { static char tnBuffer[] = "test message"; -OSPTBOOL OSPVBlockingFlag; +extern OSPTBOOL OSPVBlockingFlag; /* OSPPTNProbe - probe systems and return response times */ int OSPPTNProbe( /*0 - normal; < 0 - error code */ @@ -307,7 +307,7 @@ void OSPPTNProbeEcho( register unsigned uHost = 0; /* element number in pProbeList */ unsigned uSent = 0; /* bytes sent */ int nRecv = 0; /* bytes received */ - register int nCnt = 0; /* simple counter */ + int nCnt = 0; /* simple counter */ int nRetVal = 0; /* return value from select */ unsigned long uTime1 = 0; /* temp value for time calculations */ unsigned long uTime2 = 0; /* temp value for time calculations */