summaryrefslogtreecommitdiff
path: root/include/io/channel-command.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-01-13 12:22:33 +0000
committerDaniel P. Berrange <berrange@redhat.com>2016-01-20 11:31:01 +0000
commit821791b5055788937ddfa67a183c0ff54129efe4 (patch)
treebda1e7ac40c06d5746a8bcb2f1bd6c9f2b376c62 /include/io/channel-command.h
parente155494cf0b876c45c3c68a9ab6c641aac22dfdf (diff)
downloadqemu-821791b5055788937ddfa67a183c0ff54129efe4.zip
io: fix description of @errp parameter initialization
The "Error **errp" parameters must be NULL initialized not uninitialized. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/io/channel-command.h')
-rw-r--r--include/io/channel-command.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/io/channel-command.h b/include/io/channel-command.h
index bd3c59946f..cfc177e786 100644
--- a/include/io/channel-command.h
+++ b/include/io/channel-command.h
@@ -51,7 +51,7 @@ struct QIOChannelCommand {
* @writefd: the FD connected to the command's stdin
* @readfd: the FD connected to the command's stdout
* @pid: the PID of the running child command
- * @errp: pointer to an uninitialized error object
+ * @errp: pointer to a NULL-initialized error object
*
* Create a channel for performing I/O with the
* previously spawned command identified by @pid.
@@ -75,7 +75,7 @@ qio_channel_command_new_pid(int writefd,
* qio_channel_command_new_spawn:
* @argv: the NULL terminated list of command arguments
* @flags: the I/O mode, one of O_RDONLY, O_WRONLY, O_RDWR
- * @errp: pointer to an uninitialized error object
+ * @errp: pointer to a NULL-initialized error object
*
* Create a channel for performing I/O with the
* command to be spawned with arguments @argv.