[CRIU] [PATCH] test: static,aio01 -- Use proper type for context
Cyrill Gorcunov
gorcunov at gmail.com
Tue Nov 7 19:19:24 MSK 2017
aio_context_t is 8 byte long so on 32 bit mode it might be
strippped off when unsigned long used instead. Fix this typo.
Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
test/zdtm/static/aio01.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/static/aio01.c b/test/zdtm/static/aio01.c
index 193f562..f84fd35 100644
--- a/test/zdtm/static/aio01.c
+++ b/test/zdtm/static/aio01.c
@@ -30,7 +30,7 @@ int main(int argc, char **argv)
{
struct iocb iocb, *iocbp = &iocb;
volatile struct aio_ring *ring;
- unsigned long ctx = 0;
+ aio_context_t ctx = 0;
struct io_event event;
unsigned tail[2], head[2];
unsigned nr[2];
--
2.7.5
More information about the CRIU
mailing list