use const to avoid warnings in the future

This commit is contained in:
Jeff Hill
2002-07-13 00:59:42 +00:00
parent 93b0bf478d
commit 14d6d70ba9
+2 -2
View File
@@ -71,7 +71,7 @@ void osiSockRelease()
epicsShareFunc unsigned epicsShareAPI ipAddrToHostName
(const struct in_addr *pAddr, char *pBuf, unsigned bufSize)
{
struct hostent *ent;
struct hostent *ent;
int ret = 0;
if (bufSize<1) {
@@ -79,7 +79,7 @@ epicsShareFunc unsigned epicsShareAPI ipAddrToHostName
}
lockInfo ();
ent = gethostbyaddr((char *) pAddr, sizeof (*pAddr), AF_INET);
ent = gethostbyaddr((const char *) pAddr, sizeof (*pAddr), AF_INET);
if (ent) {
strncpy (pBuf, ent->h_name, bufSize);
pBuf[bufSize-1] = '\0';