1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

minor cleanup for various compilation warnings (AIX as well as gcc)

* libxslt/numbers.c, libxslt/extensions.c, libexslt/date.c,
  python/libxslt.c, xsltproc/xsltproc.c: minor cleanup for
  various compilation warnings (AIX as well as gcc)
This commit is contained in:
William M. Brack
2003-09-28 01:45:49 +00:00
parent c5f8d4199a
commit 1133731a3e
6 changed files with 17 additions and 11 deletions

View File

@ -441,16 +441,15 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
xmlFreeDoc(res);
} else {
int ret;
ctxt = xsltNewTransformContext(cur, doc);
if (ctxt == NULL)
return;
if (profile) {
ret = xsltRunStylesheetUser(cur, doc, params, output,
xsltRunStylesheetUser(cur, doc, params, output,
NULL, NULL, stderr, ctxt);
} else {
ret = xsltRunStylesheetUser(cur, doc, params, output,
xsltRunStylesheetUser(cur, doc, params, output,
NULL, NULL, NULL, ctxt);
}
if (ctxt->state == XSLT_STATE_ERROR)
@ -644,12 +643,10 @@ main(int argc, char **argv)
(!strcmp(argv[i], "--stringparam"))) {
const xmlChar *string;
xmlChar *value;
int len;
i++;
params[nbparams++] = argv[i++];
string = (const xmlChar *) argv[i];
len = xmlStrlen(string);
if (xmlStrchr(string, '"')) {
if (xmlStrchr(string, '\'')) {
fprintf(stderr,