search for: wrnode

Displaying 6 results from an estimated 6 matches for "wrnode".

Did you mean: rnode
2015 Nov 12
1
[PATCH] inspector: --xpath: Copy node to new document (RHBZ#1281577).
...1 deletion(-) diff --git a/inspector/inspector.c b/inspector/inspector.c index d0013ed..dd5be44 100644 --- a/inspector/inspector.c +++ b/inspector/inspector.c @@ -811,7 +811,7 @@ do_xpath (const char *query) guestfs_int_program_name); exit (EXIT_FAILURE); } - wrnode = xmlCopyNode (nodes->nodeTab[i], 1); + wrnode = xmlDocCopyNode (nodes->nodeTab[i], wrdoc, 1); if (wrnode == NULL) { fprintf (stderr, _("%s: xmlCopyNode failed\n"), guestfs_int_program_name); -- 2.5.0
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...(EXIT_FAILURE); - } + if (xo == NULL) + error (EXIT_FAILURE, 0, + _("xmlNewTextWriter: failed to create libxml2 writer")); /* Pretty-print the output. */ XMLERROR (-1, xmlTextWriterSetIndent (xo, 1)); @@ -780,25 +765,16 @@ do_xpath (const char *query) xmlNodePtr wrnode; doc = xmlReadFd (STDIN_FILENO, NULL, "utf8", XML_PARSE_NOBLANKS); - if (doc == NULL) { - fprintf (stderr, _("%s: unable to parse XML from stdin\n"), - guestfs_int_program_name); - exit (EXIT_FAILURE); - } + if (doc == NULL) + error (EXIT_FAILURE, 0,...
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
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...rr, _("%s: unable to parse XML from stdin\n"), guestfs_int_program_name); + fprintf (stderr, _("%s: unable to parse XML from stdin\n"), + guestfs_int_program_name); exit (EXIT_FAILURE); } @@ -808,14 +810,16 @@ do_xpath (const char *query) } wrnode = xmlCopyNode (nodes->nodeTab[i], 1); if (wrnode == NULL) { - fprintf (stderr, _("%s: xmlCopyNode failed\n"), guestfs_int_program_name); + fprintf (stderr, _("%s: xmlCopyNode failed\n"), + guestfs_int_program_name); exit (EXIT_FAI...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.