Displaying 5 results from an estimated 5 matches for "332,18".
Did you mean:
33,18
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
..."utime(%s)
failed: %m", new_path);
+ }
+ }
+ } else {
ret = -1;
if (ENOSPACE(errno)) {
mail_storage_set_error(STORAGE(ctx->mbox->storage),
@@ -332,18 +343,6 @@
t_push();
path = t_strconcat(ctx->tmpdir, "/", ctx->files->basename,
NULL);
- if (ctx->received_date != (time_t)-1) {
- /* set the received_date by modifying mtime */
- buf.actime = ioloop_time;
- bu...
2018 Apr 06
0
[nbdkit PATCH 2/2] python: Simplify calling into plugin
...(readonly));
- handle = PyObject_CallObject (fn, args);
+ handle = PyObject_CallFunctionObjArgs (fn, readonly ? Py_True : Py_False,
+ NULL);
Py_DECREF (fn);
- Py_DECREF (args);
if (check_python_failure ("open") == -1)
return NULL;
@@ -332,18 +319,13 @@ py_close (void *handle)
{
PyObject *obj = handle;
PyObject *fn;
- PyObject *args;
PyObject *r;
if (callback_defined ("close", &fn)) {
PyErr_Clear ();
- args = PyTuple_New (1);
- Py_INCREF (obj); /* decremented by Py_DECREF (args) */
- PyTupl...
2018 Apr 06
6
[nbdkit PATCH 0/2] Python cleanups
I noticed these while working on adding fua support into python,
these are independent enough to push now (and I'll have to rebase
my 'optional may_trim' patch on top of this).
Eric Blake (2):
python: Use Py_XDEFREF()
python: Simplify calling into plugin
plugins/python/python.c | 106 ++++++++----------------------------------------
1 file changed, 18 insertions(+), 88
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...tfs_int_program_name);
- exit (EXIT_FAILURE);
- }
+ if (inspector)
+ error (EXIT_FAILURE, 0, _("--live is not compatible with -i option"));
/* --live: make sure there was one -d option and no -a options */
for (drv = drvs; drv; drv = drv->next) {
@@ -349,28 +332,18 @@ main (int argc, char *argv[])
count_other++;
}
- if (count_d != 1) {
- fprintf (stderr,
- _("%s: with --live, you must use exactly one -d option\n"),
- guestfs_int_program_name);
- exit (EXIT_FAILURE);
- }
+ if (count_d...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did:
if (something_bad) {
perror (...);
exit (EXIT_FAILURE);
}
replace this with use of the error(3) function:
if (something_bad)
error (EXIT_FAILURE, errno, ...);
The error(3) function is supplied by glibc, or by gnulib on platforms
which don't have it, and is much more flexible than perror(3). Since
we already use error(3), there seems to be