Bug 681560 - Documentation with buggy code
Summary: Documentation with buggy code
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-02 15:27 UTC by Matthias
Modified: 2012-04-23 15:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-23 15:02:32 UTC


Attachments (Terms of Use)

Description Matthias 2011-03-02 15:27:02 UTC
Description of problem:
In the documentation there is buggy C-code examples. 
All errors are like the line beneath or similar:
const char *xmlconfig = "<domain>........</domain>";
but it should be like this:
const char xmlconfig[] = "<domain>........</domain>";


Version-Release number of selected component (if applicable):
Edition 1

Comment 1 Eric Blake 2012-04-19 23:48:18 UTC
Which documentation?  Can you post a URL where you found this bad example?  I could not find any hits with 'git grep "xmlconfig ="' in libvirt.git, so the documentation must come from elsewhere, but I don't know where to assign this BZ without some hints.

Comment 2 Matthias 2012-04-20 16:48:12 UTC
Actually I can't remember where I found the bug exactly. Sorry but it's a year ago.
I used the package from the opensuse 11.3 distribution, so maybe it might not be of any relevance, as this version of opensuse is no longer supported.

Comment 3 Eric Blake 2012-04-23 15:02:32 UTC
Then I will go ahead and close this bug; if you later find a real doc problem, feel free to reopen this or a new BZ.


Note You need to log in before you can comment on or make changes to this bug.