summaryrefslogtreecommitdiffstats
path: root/Modules/syslogmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 08:16:47 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 08:16:47 (GMT)
commit85b0f5beb182cca8b1607accce2caab87ee29835 (patch)
tree0e55ae3180c2836152ceb4f9689fc7ed1ccb71c5 /Modules/syslogmodule.c
parenta98c4a984b34f887076f4171b1e3303e164cbddf (diff)
downloadcpython-85b0f5beb182cca8b1607accce2caab87ee29835.zip
cpython-85b0f5beb182cca8b1607accce2caab87ee29835.tar.gz
cpython-85b0f5beb182cca8b1607accce2caab87ee29835.tar.bz2
Added the const qualifier to char* variables that refer to readonly internal
UTF-8 represenatation of Unicode objects.
Diffstat (limited to 'Modules/syslogmodule.c')
-rw-r--r--Modules/syslogmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c
index 7afca58..412e436 100644
--- a/Modules/syslogmodule.c
+++ b/Modules/syslogmodule.c
@@ -116,7 +116,7 @@ syslog_openlog(PyObject * self, PyObject * args, PyObject *kwds)
long facility = LOG_USER;
PyObject *new_S_ident_o = NULL;
static char *keywords[] = {"ident", "logoption", "facility", 0};
- char *ident = NULL;
+ const char *ident = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|Ull:openlog", keywords, &new_S_ident_o, &logopt, &facility))