diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-02-13 13:09:33 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-02-13 13:09:33 +0000 |
commit | 295ef00fa202c71085db039b4553582e2e21dbba (patch) | |
tree | 50b83169c7e8c3d853c76ca106b16336d15ff560 /lib | |
parent | 39d262d53bdf2076b54a81b463f96d85938caf2e (diff) |
KNF.
Pointed out by pirofti@ while reviewing my rwlock impl. based on this one.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/thread/rthread_mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/thread/rthread_mutex.c b/lib/libc/thread/rthread_mutex.c index 856f52ca86e..c9a490033b3 100644 --- a/lib/libc/thread/rthread_mutex.c +++ b/lib/libc/thread/rthread_mutex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_mutex.c,v 1.4 2019/01/29 17:41:14 mpi Exp $ */ +/* $OpenBSD: rthread_mutex.c,v 1.5 2019/02/13 13:09:32 mpi Exp $ */ /* * Copyright (c) 2017 Martin Pieuchot <mpi@openbsd.org> * Copyright (c) 2012 Philip Guenther <guenther@openbsd.org> @@ -169,7 +169,7 @@ _rthread_mutex_timedlock(pthread_mutex_t *mutexp, int trywait, return (error); /* Try hard to not enter the kernel. */ - for (i = 0; i < SPIN_COUNT; i ++) { + for (i = 0; i < SPIN_COUNT; i++) { if (mutex->lock == UNLOCKED) break; |