diff options
author | Peter Schneider-Kamp <nowonder@nowonder.de> | 2000-07-10 12:29:26 (GMT) |
---|---|---|
committer | Peter Schneider-Kamp <nowonder@nowonder.de> | 2000-07-10 12:29:26 (GMT) |
commit | 41c36ffe83d22e84cc072130b3914d66d9d722f0 (patch) | |
tree | 2a0a77b79885543be54b4440c1e445d943e56a5a /Modules/syslogmodule.c | |
parent | 416d413527ed7e9a1a5fe98f94487f6ee4315d2e (diff) | |
download | cpython-41c36ffe83d22e84cc072130b3914d66d9d722f0.zip cpython-41c36ffe83d22e84cc072130b3914d66d9d722f0.tar.gz cpython-41c36ffe83d22e84cc072130b3914d66d9d722f0.tar.bz2 |
ANSI-fication
Diffstat (limited to 'Modules/syslogmodule.c')
-rw-r--r-- | Modules/syslogmodule.c | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c index 6f192c3..a9891c4 100644 --- a/Modules/syslogmodule.c +++ b/Modules/syslogmodule.c @@ -53,9 +53,7 @@ static PyObject *S_ident_o = NULL; /* identifier, held by openlog() */ static PyObject * -syslog_openlog(self, args) - PyObject * self; - PyObject * args; +syslog_openlog(PyObject * self, PyObject * args) { long logopt = 0; long facility = LOG_USER; @@ -80,9 +78,7 @@ syslog_openlog(self, args) static PyObject * -syslog_syslog(self, args) - PyObject * self; - PyObject * args; +syslog_syslog(PyObject * self, PyObject * args) { char *message; int priority = LOG_INFO; @@ -101,9 +97,7 @@ syslog_syslog(self, args) } static PyObject * -syslog_closelog(self, args) - PyObject * self; - PyObject * args; +syslog_closelog(PyObject *self, PyObject *args) { if (!PyArg_ParseTuple(args, ":closelog")) return NULL; @@ -115,9 +109,7 @@ syslog_closelog(self, args) } static PyObject * -syslog_setlogmask(self, args) - PyObject * self; - PyObject * args; +syslog_setlogmask(PyObject *self, PyObject *args) { long maskpri, omaskpri; @@ -128,9 +120,7 @@ syslog_setlogmask(self, args) } static PyObject * -syslog_log_mask(self, args) - PyObject * self; - PyObject * args; +syslog_log_mask(PyObject *self, PyObject *args) { long mask; long pri; @@ -141,9 +131,7 @@ syslog_log_mask(self, args) } static PyObject * -syslog_log_upto(self, args) - PyObject * self; - PyObject * args; +syslog_log_upto(PyObject *self, PyObject *args) { long mask; long pri; @@ -168,10 +156,7 @@ static PyMethodDef syslog_methods[] = { /* helper function for initialization function */ static void -ins(d, s, x) - PyObject *d; - char *s; - long x; +ins(PyObject *d, char *s, long x) { PyObject *v = PyInt_FromLong(x); if (v) { |