ia64/xen-unstable

changeset 1036:7c6c07befbdc

bitkeeper revision 1.675 (400722b9KLFIfGLZUiIDTpXwwVfLmg)

xen_vbd.c, Xc.c:
Small fixes.
author kaf24@scramble.cl.cam.ac.uk
date Thu Jan 15 23:31:05 2004 +0000 (2004-01-15)
parents 8b679d77790f
children cb364c545252
files tools/xc/py/Xc.c xen/drivers/block/xen_vbd.c
line diff
     1.1 --- a/tools/xc/py/Xc.c	Thu Jan 15 19:13:38 2004 +0000
     1.2 +++ b/tools/xc/py/Xc.c	Thu Jan 15 23:31:05 2004 +0000
     1.3 @@ -445,7 +445,7 @@ static PyObject *pyxc_vbd_setextents(PyO
     1.4  
     1.5      static char *kwd_list[] = { "dom", "vbd", "extents", NULL };
     1.6  
     1.7 -    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iio", kwd_list, 
     1.8 +    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiO", kwd_list, 
     1.9                                        &dom, &vbd, &list) )
    1.10          goto fail;
    1.11  
     2.1 --- a/xen/drivers/block/xen_vbd.c	Thu Jan 15 19:13:38 2004 +0000
     2.2 +++ b/xen/drivers/block/xen_vbd.c	Thu Jan 15 23:31:05 2004 +0000
     2.3 @@ -288,7 +288,7 @@ long vbd_setextents(vbd_setextents_t *se
     2.4  
     2.5      /* Construct the new extent list. */
     2.6      new_extents = NULL;
     2.7 -    for ( i = setextents->nr_extents; i >= 0; i++ )
     2.8 +    for ( i = setextents->nr_extents; i > 0; i-- )
     2.9      {
    2.10          if ( unlikely(copy_from_user(&e, 
    2.11                                       &setextents->extents[i],