From 295ef00fa202c71085db039b4553582e2e21dbba Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 13 Feb 2019 13:09:33 +0000 Subject: KNF. Pointed out by pirofti@ while reviewing my rwlock impl. based on this one. --- lib/libc/thread/rthread_mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 * Copyright (c) 2012 Philip Guenther @@ -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; -- cgit v1.2.3