]> git.pld-linux.org Git - packages/xen.git/blob - xen-pygrub.patch
- use %service, add chkconfig deps
[packages/xen.git] / xen-pygrub.patch
1 diff -urN xen-unstable.org/tools/pygrub/src/fsys/reiser/reisermodule.c xen-unstable/tools/pygrub/src/fsys/reiser/reisermodule.c
2 --- xen-unstable.org/tools/pygrub/src/fsys/reiser/reisermodule.c        2006-01-25 05:56:11.000000000 +0100
3 +++ xen-unstable/tools/pygrub/src/fsys/reiser/reisermodule.c    2006-01-25 18:22:47.110770500 +0100
4 @@ -17,7 +17,7 @@
5  #include <stdlib.h>
6  #include <stdio.h>
7  
8 -#include <dal/file_dal.h>
9 +#include <dal/file.h>
10  #include <reiserfs/reiserfs.h>
11  
12  #if (PYTHON_API_VERSION >= 1011)
13 @@ -45,9 +45,7 @@
14  void file_dal_close(dal_t *dal) {
15  
16         if (!dal) return;
17 -
18 -       close((int)(unsigned long)dal->dev);
19 -       dal_free(dal);
20 +       file_close(dal);
21  }
22  
23  /* reiser file object */
24 @@ -218,7 +216,7 @@
25          return NULL;
26      }
27  
28 -    if (!(dal = file_dal_open(name, block_size, O_RDONLY))) {
29 +    if (!(dal = file_open(name, block_size, O_RDONLY))) {
30          PyErr_SetString(PyExc_ValueError, "Couldn't create device abstraction");
31          return NULL;    
32      }
This page took 0.02503 seconds and 3 git commands to generate.