summaryrefslogtreecommitdiff
path: root/samples/sockmap
diff options
context:
space:
mode:
Diffstat (limited to 'samples/sockmap')
-rw-r--r--samples/sockmap/sockmap_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/sockmap/sockmap_user.c b/samples/sockmap/sockmap_user.c
index f9d3785fb183..fe943c903310 100644
--- a/samples/sockmap/sockmap_user.c
+++ b/samples/sockmap/sockmap_user.c
@@ -109,7 +109,7 @@ static int sockmap_init_sockets(void)
}
/* Non-blocking sockets */
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 2; i++) {
err = ioctl(*fds[i], FIONBIO, (char *)&one);
if (err < 0) {
perror("ioctl s1 failed()");