use const in proto

This commit is contained in:
Jeff Hill
1995-08-12 00:43:41 +00:00
parent 0e225a4335
commit a362731044
2 changed files with 6 additions and 2 deletions

View File

@@ -286,7 +286,8 @@ void ca_spawn_repeater()
* gethostbyaddr(). This makes gethostbyaddr()
* hang when it is called from AST level.
*/
void caHostFromInetAddr(struct in_addr *pnet_addr, char *pBuf, unsigned size)
void caHostFromInetAddr(const struct in_addr *pnet_addr,
char *pBuf, unsigned size)
{
char *pString;

View File

@@ -601,7 +601,10 @@ char *localUserName()
/*
* caHostFromInetAddr()
*/
void caHostFromInetAddr(struct in_addr *pnet_addr, char *pBuf, unsigned size)
void caHostFromInetAddr(
const struct in_addr *pnet_addr,
char *pBuf,
unsigned size)
{
char str[INET_ADDR_LEN];