test: fix compiler warning

Fix the following warning by not using a static variable:

  test/test-fs-poll.c:79: warning: ‘static’ is not at beginning of declaration
This commit is contained in:
Ben Noordhuis 2012-11-07 16:12:22 +01:00
parent a7cedbe220
commit 91faa3e688

View File

@ -76,7 +76,9 @@ static void poll_cb(uv_fs_poll_t* handle,
int status,
const uv_statbuf_t* prev,
const uv_statbuf_t* curr) {
const static uv_statbuf_t zero_statbuf;
uv_statbuf_t zero_statbuf;
memset(&zero_statbuf, 0, sizeof(zero_statbuf));
ASSERT(handle == &poll_handle);
ASSERT(uv_is_active((uv_handle_t*)handle));