mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu_process: Limit qemuProcessQMPNew to const input strings
Add the const qualifier on non modified strings (string only copied inside qemuProcessQMPNew) so that const strings can be used directly in calls to qemuProcessQMPNew in future patches. Signed-off-by: Chris Venteicher <cventeic@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3bdb6e826f
commit
1aa4257569
@ -8340,7 +8340,7 @@ qemuProcessQMPFree(qemuProcessQMPPtr cmd)
|
||||
|
||||
|
||||
qemuProcessQMPPtr
|
||||
qemuProcessQMPNew(char *binary,
|
||||
qemuProcessQMPNew(const char *binary,
|
||||
const char *libDir,
|
||||
uid_t runUid,
|
||||
gid_t runGid,
|
||||
|
@ -231,7 +231,7 @@ struct _qemuProcessQMP {
|
||||
virDomainObjPtr vm;
|
||||
};
|
||||
|
||||
qemuProcessQMPPtr qemuProcessQMPNew(char *binary,
|
||||
qemuProcessQMPPtr qemuProcessQMPNew(const char *binary,
|
||||
const char *libDir,
|
||||
uid_t runUid,
|
||||
gid_t runGid,
|
||||
|
Loading…
Reference in New Issue
Block a user