mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +03:00
Fix a couple of places where (f)printf parameters were broken
As reported by Thomas Jarosch <thomas.jarosch@intra2net.com>
This commit is contained in:
@ -356,15 +356,15 @@ libxslt_xsltRegisterExtModuleElement(PyObject *self ATTRIBUTE_UNUSED,
|
|||||||
PyObject *pyobj_element_f;
|
PyObject *pyobj_element_f;
|
||||||
PyObject *pyobj_precomp_f;
|
PyObject *pyobj_precomp_f;
|
||||||
|
|
||||||
#ifdef DEBUG_EXTENSIONS
|
|
||||||
printf("libxslt_xsltRegisterExtModuleElement called\n",
|
|
||||||
name, ns_uri);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, (char *)"szOO:registerExtModuleElement",
|
if (!PyArg_ParseTuple(args, (char *)"szOO:registerExtModuleElement",
|
||||||
&name, &ns_uri, &pyobj_precomp_f, &pyobj_element_f))
|
&name, &ns_uri, &pyobj_precomp_f, &pyobj_element_f))
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
|
#ifdef DEBUG_EXTENSIONS
|
||||||
|
printf("libxslt_xsltRegisterExtModuleElement called: %s %s\n",
|
||||||
|
name, ns_uri);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((name == NULL) || (pyobj_element_f == NULL) || (pyobj_precomp_f == NULL)) {
|
if ((name == NULL) || (pyobj_element_f == NULL) || (pyobj_precomp_f == NULL)) {
|
||||||
py_retval = libxml_intWrap(-1);
|
py_retval = libxml_intWrap(-1);
|
||||||
return(py_retval);
|
return(py_retval);
|
||||||
|
@ -319,7 +319,7 @@ static void endTimer(char *format, ...)
|
|||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
vfprintf(stderr,format,ap);
|
vfprintf(stderr,format,ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
fprintf(stderr, " was not timed\n", msec);
|
fprintf(stderr, " was not timed\n");
|
||||||
#else
|
#else
|
||||||
/* We don't have gettimeofday, time or stdarg.h, what crazy world is
|
/* We don't have gettimeofday, time or stdarg.h, what crazy world is
|
||||||
* this ?!
|
* this ?!
|
||||||
|
Reference in New Issue
Block a user