1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

net_service_lookup: add missing 'const'.

Spotted in passing while doing the filename-correction trawl.
This commit is contained in:
Simon Tatham 2022-01-22 15:45:00 +00:00
parent 5935c68288
commit b7ed5056e5
3 changed files with 3 additions and 3 deletions

View File

@ -346,7 +346,7 @@ void sk_free_peer_info(SocketPeerInfo *pi);
* can just return 0 - this function is not required to handle
* numeric port specifications.
*/
int net_service_lookup(char *service);
int net_service_lookup(const char *service);
/*
* Look up the local hostname; return value needs freeing.

View File

@ -1599,7 +1599,7 @@ static void uxsel_tell(NetSocket *s)
uxsel_set(s->s, rwx, net_select_result);
}
int net_service_lookup(char *service)
int net_service_lookup(const char *service)
{
struct servent *se;
se = getservbyname(service, NULL);

View File

@ -1809,7 +1809,7 @@ bool socket_writable(SOCKET skt)
return false;
}
int net_service_lookup(char *service)
int net_service_lookup(const char *service)
{
struct servent *se;
se = p_getservbyname(service, NULL);