summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-02-29 12:53:10 +0000
committerRichard W.M. Jones <rjones@redhat.com>2008-02-29 12:53:10 +0000
commitbc430178efc7ec9a767aa5db2aedfecc967b1767 (patch)
treec8bd1c14f60a925beab8ef5cb6022b0b5fb10730
parent774dc9bff1c113d150e3de12a1a14f3778da7e8b (diff)
downloadlibvirt-python-split-bc430178efc7ec9a767aa5db2aedfecc967b1767.tar.gz
libvirt-python-split-bc430178efc7ec9a767aa5db2aedfecc967b1767.tar.xz
libvirt-python-split-bc430178efc7ec9a767aa5db2aedfecc967b1767.zip
Many typos fixed (Atsushi SAKAI).v0.4.1
-rw-r--r--libvir.c10
-rw-r--r--libvirt-python-api.xml4
-rw-r--r--libvirt_wrap.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/libvir.c b/libvir.c
index 2b97e08..fe650e8 100644
--- a/libvir.c
+++ b/libvir.c
@@ -115,7 +115,7 @@ libvirt_virDomainGetSchedulerType(PyObject *self ATTRIBUTE_UNUSED,
if (c_retval == NULL)
return VIR_PY_NONE;
- /* convert to a Python tupple of long objects */
+ /* convert to a Python tuple of long objects */
if ((info = PyTuple_New(2)) == NULL) {
free(c_retval);
return VIR_PY_NONE;
@@ -154,7 +154,7 @@ libvirt_virDomainGetSchedulerParameters(PyObject *self ATTRIBUTE_UNUSED,
return VIR_PY_NONE;
}
- /* convert to a Python tupple of long objects */
+ /* convert to a Python tuple of long objects */
if ((info = PyDict_New()) == NULL) {
free(params);
return VIR_PY_NONE;
@@ -227,7 +227,7 @@ libvirt_virDomainSetSchedulerParameters(PyObject *self ATTRIBUTE_UNUSED,
return VIR_PY_INT_FAIL;
}
- /* convert to a Python tupple of long objects */
+ /* convert to a Python tuple of long objects */
for (i = 0 ; i < nparams ; i++) {
PyObject *key, *val;
key = libvirt_constcharPtrWrap(params[i].field);
@@ -318,7 +318,7 @@ libvirt_virDomainGetVcpus(PyObject *self ATTRIBUTE_UNUSED,
cpumap, cpumaplen) < 0)
goto cleanup;
- /* convert to a Python tupple of long objects */
+ /* convert to a Python tuple of long objects */
if ((pyretval = PyTuple_New(2)) == NULL)
goto cleanup;
if ((pycpuinfo = PyList_New(dominfo.nrVirtCpu)) == NULL)
@@ -1442,7 +1442,7 @@ initcygvirtmod
virInitialize();
- /* intialize the python extension module */
+ /* initialize the python extension module */
Py_InitModule((char *)
#ifndef __CYGWIN__
"libvirtmod"
diff --git a/libvirt-python-api.xml b/libvirt-python-api.xml
index f50b378..6f64b65 100644
--- a/libvirt-python-api.xml
+++ b/libvirt-python-api.xml
@@ -76,7 +76,7 @@
<arg name='path' type='char *' info='the path for the interface device'/>
</function>
<function name="virNodeGetCellsFreeMemory" file='python'>
- <info>Returns the availbale memory for a list of cells</info>
+ <info>Returns the available memory for a list of cells</info>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
<arg name='startCell' type='int' info='first cell in the list'/>
<arg name='maxCells' type='int' info='number of cell in the list'/>
@@ -98,7 +98,7 @@
<arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
</function>
<function name='virDomainPinVcpu' file='python'>
- <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires priviledged access to the hypervisor.</info>
+ <info>Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.</info>
<return type='int' info='0 in case of success, -1 in case of failure.'/>
<arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
<arg name='vcpu' type='unsigned int' info='virtual CPU number'/>
diff --git a/libvirt_wrap.h b/libvirt_wrap.h
index acf788f..3bb42ab 100644
--- a/libvirt_wrap.h
+++ b/libvirt_wrap.h
@@ -86,7 +86,7 @@ PyObject * libvirt_virStorageVolPtrWrap(virStorageVolPtr node);
* if (x) LIBVIRT_STMT_START { ... } LIBVIRT_STMT_END; else ...
*
* When GCC is compiling C code in non-ANSI mode, it will use the
- * compiler __extension__ to wrap the statements wihin `({' and '})' braces.
+ * compiler __extension__ to wrap the statements within `({' and '})' braces.
* When compiling on platforms where configure has defined
* HAVE_DOWHILE_MACROS, statements will be wrapped with `do' and `while (0)'.
* For any other platforms (SunOS4 is known to have this issue), wrap the