]> xenbits.xensource.com Git - libvirt.git/commit
build: use correct printf types for uid/gid
authorEric Blake <eblake@redhat.com>
Mon, 22 Oct 2012 20:39:14 +0000 (14:39 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 22 Oct 2012 20:41:00 +0000 (14:41 -0600)
commit23a4df886d01cf99a3201ef2fa3a5dddaf301f74
tree83b85e123ebaf7f071543ce563de42e2c0835cc0
parent2e99fa0385eea0084c520b4a3798a8663fb11b7a
build: use correct printf types for uid/gid

Fixes a build failure on cygwin:
cc1: warnings being treated as errors
security/security_dac.c: In function 'virSecurityDACSetProcessLabel':
security/security_dac.c:862:5: error: format '%u' expects type 'unsigned int', but argument 7 has type 'uid_t' [-Wformat]
security/security_dac.c:862:5: error: format '%u' expects type 'unsigned int', but argument 8 has type 'gid_t' [-Wformat]

* src/security/security_dac.c (virSecurityDACSetProcessLabel)
(virSecurityDACGenLabel): Use proper casts.
src/security/security_dac.c