]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: avoid compiler warning on cygwin
authorEric Blake <eblake@redhat.com>
Wed, 9 Mar 2011 04:47:49 +0000 (21:47 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 9 Mar 2011 04:56:18 +0000 (21:56 -0700)
commit3dfd4ea3980c0a4ae921ae389bff134361f668ea
tree174afd1ada7d3e1527a055f5d1722afd294f382d
parentb1a5aefcee338ba677c0a5fcbf19d01689f66eb3
build: avoid compiler warning on cygwin

On cygwin:

  CC       libvirt_driver_security_la-security_dac.lo
security/security_dac.c: In function 'virSecurityDACSetProcessLabel':
security/security_dac.c:618: warning: format '%d' expects type 'int', but argument 7 has type 'uid_t' [-Wformat]

We've done this before (see src/util/util.c).

* src/security/security_dac.c (virSecurityDACSetProcessLabel): On
cygwin, uid_t is a 32-bit long.
src/security/security_dac.c