]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Untabify Modules/posixmodule.c (2)
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 6 May 2010 00:03:44 +0000 (00:03 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 6 May 2010 00:03:44 +0000 (00:03 +0000)
Fix some more functions by hand

Modules/posixmodule.c

index c6bbacdf0a99735a593f474ef55429a9560d5273..348efb3d36e71dc39b5b050101599caea91229a7 100644 (file)
@@ -612,10 +612,10 @@ os2_formatmsg(char *msgbuf, int msglen, char *reason)
     msgbuf[msglen] = '\0'; /* OS/2 Doesn't Guarantee a Terminator */
 
     if (strlen(msgbuf) > 0) { /* If Non-Empty Msg, Trim CRLF */
-    char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
+        char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
 
-    while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
-        *lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
+        while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
+            *lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
     }
 
     /* Add Optional Reason Text */
@@ -8181,14 +8181,14 @@ posix_sysconf(PyObject *self, PyObject *args)
     int name;
 
     if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) {
-    int value;
+        int value;
 
-    errno = 0;
-    value = sysconf(name);
-    if (value == -1 && errno != 0)
-        posix_error();
-    else
-        result = PyInt_FromLong(value);
+        errno = 0;
+        value = sysconf(name);
+        if (value == -1 && errno != 0)
+            posix_error();
+        else
+            result = PyInt_FromLong(value);
     }
     return result;
 }