mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Issue #25923: Added more const qualifiers to signatures of static and private functions.
This commit is contained in:
parent
2d06e84455
commit
ef1585eb9a
60 changed files with 210 additions and 191 deletions
|
@ -904,7 +904,7 @@ static PyThread_type_lock netdb_lock;
|
|||
an error occurred; then an exception is raised. */
|
||||
|
||||
static int
|
||||
setipaddr(char *name, struct sockaddr *addr_ret, size_t addr_ret_size, int af)
|
||||
setipaddr(const char *name, struct sockaddr *addr_ret, size_t addr_ret_size, int af)
|
||||
{
|
||||
struct addrinfo hints, *res;
|
||||
int error;
|
||||
|
@ -1085,7 +1085,7 @@ makeipaddr(struct sockaddr *addr, int addrlen)
|
|||
an error occurred. */
|
||||
|
||||
static int
|
||||
setbdaddr(char *name, bdaddr_t *bdaddr)
|
||||
setbdaddr(const char *name, bdaddr_t *bdaddr)
|
||||
{
|
||||
unsigned int b0, b1, b2, b3, b4, b5;
|
||||
char ch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue