fixed hpux warnings

This commit is contained in:
Jeff Hill
2002-01-31 16:54:04 +00:00
parent cf9ce0bf02
commit 58a16ba21d

View File

@@ -16,6 +16,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include "envDefs.h"
#include "epicsAssert.h"
@@ -108,9 +109,11 @@ extern "C" void epicsShareAPI addAddrToChannelAccessAddressList
extern "C" void epicsShareAPI removeDuplicatesAddresses
( ELLLIST *pDestList, ELLLIST *pSrcList )
{
osiSockAddrNode *pNode;
ELLNODE *pRawNode;
while ( (pNode = (osiSockAddrNode *) ellGet ( pSrcList ) ) ) {
while ( (pRawNode = ellGet ( pSrcList ) ) ) {
assert ( offsetof (osiSockAddrNode, node) == 0 );
osiSockAddrNode *pNode = reinterpret_cast<osiSockAddrNode *> ( pRawNode );
osiSockAddrNode *pTmpNode;
if ( pNode->addr.sa.sa_family == AF_INET ) {