774eaf569376b0d536b59ac6e5c026f456880ea8
[packages/apache-mod_python.git] / apache-mod_python-apr-status-is-success.patch
1 diff -Nur mod_python-3.1.3-orig/src/connobject.c mod_python-3.1.3/src/connobject.c
2 --- mod_python-3.1.3-orig/src/connobject.c      2004-02-16 20:47:27.000000000 +0100
3 +++ mod_python-3.1.3/src/connobject.c   2004-10-16 12:03:50.870833912 +0200
4 @@ -78,7 +78,7 @@
5      rc = ap_get_brigade(c->input_filters, bb, mode, APR_BLOCK_READ, bufsize);
6      Py_END_ALLOW_THREADS;
7  
8 -    if (! APR_STATUS_IS_SUCCESS(rc)) {
9 +    if ( rc != APR_SUCCESS ) {
10          PyErr_SetObject(PyExc_IOError, 
11                          PyString_FromString("Connection read error"));
12          return NULL;
13 diff -Nur mod_python-3.1.3-orig/src/filterobject.c mod_python-3.1.3/src/filterobject.c
14 --- mod_python-3.1.3-orig/src/filterobject.c    2004-02-16 20:47:27.000000000 +0100
15 +++ mod_python-3.1.3/src/filterobject.c 2004-10-16 12:04:10.783806680 +0200
16 @@ -178,7 +178,7 @@
17                                    APR_BLOCK_READ, self->readbytes);
18          Py_END_ALLOW_THREADS;
19  
20 -        if (!APR_STATUS_IS_EAGAIN(self->rc) && !APR_STATUS_IS_SUCCESS(self->rc)) {
21 +        if (!APR_STATUS_IS_EAGAIN(self->rc) && self->rc != APR_SUCCESS ) {
22              PyErr_SetObject(PyExc_IOError, 
23                              PyString_FromString("Input filter read error"));
24              return NULL;
This page took 0.024895 seconds and 2 git commands to generate.