about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2014-05-07 13:58:23 +0200
committerOndřej Bílka <neleai@seznam.cz>2014-05-07 14:00:01 +0200
commitce0c5b8f365c73fc647f9a2a43fa988e6f0f46f4 (patch)
tree05a8063f36cff713d7c7196e388a7650202e6e78 /nptl
parent0f58d25277fe88f3907e8c426f9bcedb7f07ed0d (diff)
downloadglibc-ce0c5b8f365c73fc647f9a2a43fa988e6f0f46f4.tar.gz
glibc-ce0c5b8f365c73fc647f9a2a43fa988e6f0f46f4.tar.xz
glibc-ce0c5b8f365c73fc647f9a2a43fa988e6f0f46f4.zip
Fix typo in nptl/sockperf.c
Diffstat (limited to 'nptl')
-rw-r--r--nptl/sockperf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/sockperf.c b/nptl/sockperf.c
index 740fb883f0..2d4b872740 100644
--- a/nptl/sockperf.c
+++ b/nptl/sockperf.c
@@ -71,7 +71,6 @@ client (void *arg)
   struct thread_param *param = arg;
   unsigned int cnt;
   unsigned int nserv = param->nserv;
-  int clisock[nserv];
   struct pollfd servpoll[nserv];
   struct sockaddr_un servaddr;
   socklen_t servlen;
@@ -102,7 +101,7 @@ client (void *arg)
   for (cnt = 0; cnt < nserv; ++cnt)
     {
       servpoll[cnt].fd = socket (AF_UNIX, SOCK_STREAM, 0);
-      if (clisock < 0)
+      if (servpoll[cnt].fd < 0)
 	{
 	  puts ("cannot create socket in client");
 	  return NULL;