mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
build: fix build on cygwin
Regression introduced when we changed types in commit3e2c3d8f6
. We've done this sort of cleanup before (see commitc685993d7
). * src/conf/storage_conf.c (virStoragePoolDefFormat) (virStorageVolTargetDefFormat): Cast gid_t and uid_t.
This commit is contained in:
parent
1012dc2933
commit
8768149545
@ -915,10 +915,10 @@ virStoragePoolDefFormat(virStoragePoolDefPtr def) {
|
||||
virBufferAddLit(&buf," <permissions>\n");
|
||||
virBufferAsprintf(&buf," <mode>0%o</mode>\n",
|
||||
def->target.perms.mode);
|
||||
virBufferAsprintf(&buf," <owner>%d</owner>\n",
|
||||
def->target.perms.uid);
|
||||
virBufferAsprintf(&buf," <group>%d</group>\n",
|
||||
def->target.perms.gid);
|
||||
virBufferAsprintf(&buf," <owner>%u</owner>\n",
|
||||
(unsigned int) def->target.perms.uid);
|
||||
virBufferAsprintf(&buf," <group>%u</group>\n",
|
||||
(unsigned int) def->target.perms.gid);
|
||||
|
||||
if (def->target.perms.label)
|
||||
virBufferAsprintf(&buf," <label>%s</label>\n",
|
||||
@ -1152,10 +1152,10 @@ virStorageVolTargetDefFormat(virStorageVolOptionsPtr options,
|
||||
virBufferAddLit(buf," <permissions>\n");
|
||||
virBufferAsprintf(buf," <mode>0%o</mode>\n",
|
||||
def->perms.mode);
|
||||
virBufferAsprintf(buf," <owner>%d</owner>\n",
|
||||
def->perms.uid);
|
||||
virBufferAsprintf(buf," <group>%d</group>\n",
|
||||
def->perms.gid);
|
||||
virBufferAsprintf(buf," <owner>%u</owner>\n",
|
||||
(unsigned int) def->perms.uid);
|
||||
virBufferAsprintf(buf," <group>%u</group>\n",
|
||||
(unsigned int) def->perms.gid);
|
||||
|
||||
|
||||
if (def->perms.label)
|
||||
|
Loading…
Reference in New Issue
Block a user