]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid shadowed variable in fdstreamtest
authorEric Blake <eblake@redhat.com>
Mon, 13 May 2013 19:38:18 +0000 (13:38 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 13 May 2013 19:38:18 +0000 (13:38 -0600)
commit84f3777a7909c9f173d40b8f02dc1b0a085e31fb
tree8e226f67f8f9b8cd762778547553890a98d260f5
parent3407e3b3a2a58a7eb54100cff9100e2f932873b1
build: avoid shadowed variable in fdstreamtest

On RHEL 6.4 (gcc 4.4.7), I got:

fdstreamtest.c: In function 'testFDStreamReadCommon':
fdstreamtest.c:44: error: declaration of 'tmpfile' shadows a global declaration [-Wshadow]

* tests/fdstreamtest.c (testFDStreamReadCommon)
(testFDStreamWriteCommon): Rename 'tmpfile' variable.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/fdstreamtest.c