Bug 681560

Summary: Documentation with buggy code
Product: [Community] Virtualization Tools Reporter: Matthias <mensch0815>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, eblake, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-23 15:02:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.