From 319e0ac8ce907540f22d77fd8943c216b686d3d5 Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 29 Jun 2015 23:40:33 +0200 Subject: [PATCH] fixed initialization of pollfd --- src/sptps_speed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sptps_speed.c b/src/sptps_speed.c index 00f005ec..addd5614 100644 --- a/src/sptps_speed.c +++ b/src/sptps_speed.c @@ -139,7 +139,7 @@ int main(int argc, char *argv[]) { return 1; } - struct pollfd pfd[2] = {{fd[0], POLLIN, NULL}, {fd[1], POLLIN, NULL}}; + struct pollfd pfd[2] = {{fd[0], POLLIN, 0}, {fd[1], POLLIN, 0}}; fprintf(stderr, "SPTPS/TCP authenticate for %lg seconds: ", duration); for(clock_start(); clock_countto(duration);) {