summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9d178cb)
This affects the following functions:
virStoragePoolBuild
virStoragePoolDelete
virStorageVolDelete
Previously a call to virStorageVolDelete would succeed returning 0, which
was interpreted as false, causing us to raise an exception with
VIR_ERR_NONE.
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
int r;
NONBLOCKING (r = $c_name ($1, i));
int r;
NONBLOCKING (r = $c_name ($1, i));
- CHECK_ERROR (!r, conn, \"$c_name\");
+ CHECK_ERROR (r == -1, conn, \"$c_name\");
int r;
NONBLOCKING (r = virStoragePoolBuild (pool, i));
int r;
NONBLOCKING (r = virStoragePoolBuild (pool, i));
- CHECK_ERROR (!r, conn, "virStoragePoolBuild");
+ CHECK_ERROR (r == -1, conn, "virStoragePoolBuild");
CAMLreturn (Val_unit);
#endif
CAMLreturn (Val_unit);
#endif
int r;
NONBLOCKING (r = virStoragePoolDelete (pool, i));
int r;
NONBLOCKING (r = virStoragePoolDelete (pool, i));
- CHECK_ERROR (!r, conn, "virStoragePoolDelete");
+ CHECK_ERROR (r == -1, conn, "virStoragePoolDelete");
CAMLreturn (Val_unit);
#endif
CAMLreturn (Val_unit);
#endif
int r;
NONBLOCKING (r = virStorageVolDelete (vol, i));
int r;
NONBLOCKING (r = virStorageVolDelete (vol, i));
- CHECK_ERROR (!r, conn, "virStorageVolDelete");
+ CHECK_ERROR (r == -1, conn, "virStorageVolDelete");
CAMLreturn (Val_unit);
#endif
CAMLreturn (Val_unit);
#endif