]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu: Fix documentation of cpuGetModels
authorJiri Denemark <jdenemar@redhat.com>
Fri, 29 Apr 2016 08:41:35 +0000 (10:41 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 20 May 2016 07:18:56 +0000 (09:18 +0200)
All callers of cpuGetModels expect @models to be NULL-terminated. Once
both x86GetModels and ppc64GetModels were fixed to meet this
expectation, we can explicitly document it.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu.c

index 1952b53ecf1b1b299e3929644960f553f34e75e6..dbd09870b5c10c6b1cd6296f528b243f8c321bb3 100644 (file)
@@ -716,7 +716,7 @@ cpuModelIsAllowed(const char *model,
  * cpuGetModels:
  *
  * @archName: CPU architecture string
- * @models: where to store the list of supported models
+ * @models: where to store the NULL-terminated list of supported models
  *
  * Fetches all CPU models supported by libvirt on @archName.
  *