summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-25 18:01:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-25 18:01:53 (GMT)
commitef1585eb9a488ae8ce3ff057f43a7048b941cc1c (patch)
treefbbdc44ba78d84a31d5fc0bf1679870ec4f32f77 /Modules/socketmodule.c
parent2d06e8445587d9b4d0bf79bdb08ab4743b780249 (diff)
downloadcpython-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.zip
cpython-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.tar.gz
cpython-ef1585eb9a488ae8ce3ff057f43a7048b941cc1c.tar.bz2
Issue #25923: Added more const qualifiers to signatures of static and private functions.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index bae9634..7ab534e 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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;