mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
maint: fix typos on guaranteed
* src/conf/domain_event.c (virDomainEventDispatch): Fix typo. * src/internal.h (ATTRIBUTE_FMT_PRINTF): Likewise. * src/libvirt.c (virStreamEventUpdateCallback): Likewise. * src/remote/remote_driver.c (doRemoteOpen): Likewise. * src/storage/storage_backend_fs.c (virStorageBackendProbeTarget): Likewise. * src/util/virterror.c (virConnCopyLastError, virCopyLastError): Likewise. * src/xen/xend_internal.h (xend_wait_for_devices): Likewise.
This commit is contained in:
parent
e0a21dfef4
commit
a71434054c
@ -1069,7 +1069,7 @@ void virDomainEventDispatch(virDomainEventPtr event,
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
/* Cache this now, since we may be dropping the lock,
|
/* Cache this now, since we may be dropping the lock,
|
||||||
and have more callbacks added. We're guarenteed not
|
and have more callbacks added. We're guaranteed not
|
||||||
to have any removed */
|
to have any removed */
|
||||||
int cbCount = callbacks->count;
|
int cbCount = callbacks->count;
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
* Macro used to check printf like functions, if compiling
|
* Macro used to check printf like functions, if compiling
|
||||||
* with gcc.
|
* with gcc.
|
||||||
*
|
*
|
||||||
* We use gnulib which guarentees we always have GNU style
|
* We use gnulib which guarantees we always have GNU style
|
||||||
* printf format specifiers even on broken Win32 platforms
|
* printf format specifiers even on broken Win32 platforms
|
||||||
* hence we have to force 'gnu_printf' for new GCC
|
* hence we have to force 'gnu_printf' for new GCC
|
||||||
*/
|
*/
|
||||||
|
@ -13390,7 +13390,7 @@ error:
|
|||||||
* Changes the set of events to monitor for a stream. This allows
|
* Changes the set of events to monitor for a stream. This allows
|
||||||
* for event notification to be changed without having to
|
* for event notification to be changed without having to
|
||||||
* unregister & register the callback completely. This method
|
* unregister & register the callback completely. This method
|
||||||
* is guarenteed to succeed if a callback is already registered
|
* is guaranteed to succeed if a callback is already registered
|
||||||
*
|
*
|
||||||
* Returns 0 on success, -1 if no callback is registered
|
* Returns 0 on success, -1 if no callback is registered
|
||||||
*/
|
*/
|
||||||
|
@ -584,7 +584,7 @@ doRemoteOpen (virConnectPtr conn,
|
|||||||
if (!(priv->client = virNetClientNewExternal(cmd_argv)))
|
if (!(priv->client = virNetClientNewExternal(cmd_argv)))
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
/* Do not set 'is_secure' flag since we can't guarentee
|
/* Do not set 'is_secure' flag since we can't guarantee
|
||||||
* an external program is secure, and this flag must be
|
* an external program is secure, and this flag must be
|
||||||
* pessimistic */
|
* pessimistic */
|
||||||
} break;
|
} break;
|
||||||
|
@ -143,7 +143,7 @@ virStorageBackendProbeTarget(virStorageVolTargetPtr target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* XXX ideally we'd fill in secret UUID here
|
/* XXX ideally we'd fill in secret UUID here
|
||||||
* but we cannot guarentee 'conn' is non-NULL
|
* but we cannot guarantee 'conn' is non-NULL
|
||||||
* at this point in time :-( So we only fill
|
* at this point in time :-( So we only fill
|
||||||
* in secrets when someone first queries a vol
|
* in secrets when someone first queries a vol
|
||||||
*/
|
*/
|
||||||
|
@ -327,7 +327,7 @@ int
|
|||||||
virCopyLastError(virErrorPtr to)
|
virCopyLastError(virErrorPtr to)
|
||||||
{
|
{
|
||||||
virErrorPtr err = virLastErrorObject();
|
virErrorPtr err = virLastErrorObject();
|
||||||
/* We can't guarentee caller has initialized it to zero */
|
/* We can't guarantee caller has initialized it to zero */
|
||||||
memset(to, 0, sizeof(*to));
|
memset(to, 0, sizeof(*to));
|
||||||
if (err)
|
if (err)
|
||||||
virCopyError(err, to);
|
virCopyError(err, to);
|
||||||
@ -464,7 +464,7 @@ virConnGetLastError(virConnectPtr conn)
|
|||||||
int
|
int
|
||||||
virConnCopyLastError(virConnectPtr conn, virErrorPtr to)
|
virConnCopyLastError(virConnectPtr conn, virErrorPtr to)
|
||||||
{
|
{
|
||||||
/* We can't guarentee caller has initialized it to zero */
|
/* We can't guarantee caller has initialized it to zero */
|
||||||
memset(to, 0, sizeof(*to));
|
memset(to, 0, sizeof(*to));
|
||||||
|
|
||||||
if (conn == NULL)
|
if (conn == NULL)
|
||||||
|
@ -36,7 +36,7 @@ xenDaemonOpen_unix(virConnectPtr conn, const char *path);
|
|||||||
* \return 0 for success; -1 (with errno) on error
|
* \return 0 for success; -1 (with errno) on error
|
||||||
*
|
*
|
||||||
* xen_create() returns after a domain has been allocated including
|
* xen_create() returns after a domain has been allocated including
|
||||||
* its memory. This does not guarentee, though, that the devices
|
* its memory. This does not guarantee, though, that the devices
|
||||||
* have come up properly. For instance, if you create a VBD with an
|
* have come up properly. For instance, if you create a VBD with an
|
||||||
* invalid filename, the error won't occur until after this function
|
* invalid filename, the error won't occur until after this function
|
||||||
* returns.
|
* returns.
|
||||||
|
Loading…
Reference in New Issue
Block a user