summaryrefslogtreecommitdiffstats
path: root/Modules/sgimodule.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-09 15:15:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-09 15:15:40 (GMT)
commitc7c96a90bcf1366ac6f350f5506d0afee611e351 (patch)
tree4134c189d25fe972f2717f4b642a26e5f323a922 /Modules/sgimodule.c
parentba32864b2d97018c71ce90926c853a67e79becf7 (diff)
downloadcpython-c7c96a90bcf1366ac6f350f5506d0afee611e351.zip
cpython-c7c96a90bcf1366ac6f350f5506d0afee611e351.tar.gz
cpython-c7c96a90bcf1366ac6f350f5506d0afee611e351.tar.bz2
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
Diffstat (limited to 'Modules/sgimodule.c')
-rw-r--r--Modules/sgimodule.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/Modules/sgimodule.c b/Modules/sgimodule.c
index f7e1263..0d13248 100644
--- a/Modules/sgimodule.c
+++ b/Modules/sgimodule.c
@@ -10,14 +10,14 @@
static PyObject *
sgi_nap(PyObject *self, PyObject *args)
{
- long ticks;
- if (!PyArg_ParseTuple(args, "l:nap", &ticks))
- return NULL;
- Py_BEGIN_ALLOW_THREADS
- sginap(ticks);
- Py_END_ALLOW_THREADS
- Py_INCREF(Py_None);
- return Py_None;
+ long ticks;
+ if (!PyArg_ParseTuple(args, "l:nap", &ticks))
+ return NULL;
+ Py_BEGIN_ALLOW_THREADS
+ sginap(ticks);
+ Py_END_ALLOW_THREADS
+ Py_INCREF(Py_None);
+ return Py_None;
}
extern char *_getpty(int *, int, mode_t, int);
@@ -25,31 +25,31 @@ extern char *_getpty(int *, int, mode_t, int);
static PyObject *
sgi__getpty(PyObject *self, PyObject *args)
{
- int oflag;
- int mode;
- int nofork;
- char *name;
- int fildes;
- if (!PyArg_ParseTuple(args, "iii:_getpty", &oflag, &mode, &nofork))
- return NULL;
- errno = 0;
- name = _getpty(&fildes, oflag, (mode_t)mode, nofork);
- if (name == NULL) {
- PyErr_SetFromErrno(PyExc_IOError);
- return NULL;
- }
- return Py_BuildValue("(si)", name, fildes);
+ int oflag;
+ int mode;
+ int nofork;
+ char *name;
+ int fildes;
+ if (!PyArg_ParseTuple(args, "iii:_getpty", &oflag, &mode, &nofork))
+ return NULL;
+ errno = 0;
+ name = _getpty(&fildes, oflag, (mode_t)mode, nofork);
+ if (name == NULL) {
+ PyErr_SetFromErrno(PyExc_IOError);
+ return NULL;
+ }
+ return Py_BuildValue("(si)", name, fildes);
}
static PyMethodDef sgi_methods[] = {
- {"nap", sgi_nap, METH_VARARGS},
- {"_getpty", sgi__getpty, METH_VARARGS},
- {NULL, NULL} /* sentinel */
+ {"nap", sgi_nap, METH_VARARGS},
+ {"_getpty", sgi__getpty, METH_VARARGS},
+ {NULL, NULL} /* sentinel */
};
void
initsgi(void)
{
- Py_InitModule("sgi", sgi_methods);
+ Py_InitModule("sgi", sgi_methods);
}