Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in nptl/sockperf.c
  • Loading branch information
Ondřej Bílka committed May 7, 2014
1 parent 0f58d25 commit ce0c5b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 8 additions & 3 deletions ChangeLog
@@ -1,13 +1,18 @@
2014-05-07 Ondřej Bílka <neleai@seznam.cz>

[BZ #16876]
* nptl/sockperf.c (client): Check socket return value.

2014-05-06 Roland McGrath <roland@hack.frob.com>

* sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
* sysdeps/arm/unwind.h: ... here.

2014-05-06 Aurelien Jarno <aurelien@aurel32.net>

[BZ# 16916]
* sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
Define.
[BZ# 16916]
* sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
Define.

2014-05-06 Vidya Ranganathan <vidya@linux.vnet.ibm.com>

Expand Down
2 changes: 1 addition & 1 deletion NEWS
Expand Up @@ -16,7 +16,7 @@ Version 2.20
16677, 16680, 16683, 16689, 16695, 16701, 16706, 16707, 16712, 16713,
16714, 16731, 16739, 16740, 16743, 16754, 16758, 16759, 16760, 16770,
16786, 16789, 16791, 16799, 16800, 16815, 16823, 16824, 16831, 16838,
16854, 16885, 16888, 16890, 16912, 16916.
16854, 16876, 16885, 16888, 16890, 16912, 16916.

* The minimum Linux kernel version that this version of the GNU C Library
can be used with is 2.6.32.
Expand Down
3 changes: 1 addition & 2 deletions nptl/sockperf.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ce0c5b8

Please sign in to comment.