diff options
| -rw-r--r-- | libc/inet/resolv.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index f1e7da7ce..0a1c0be66 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -3530,7 +3530,7 @@ __res_vinit(res_state rp, int preinit)  	return 0;  } -static void attribute_noreturn +static void  __res_iclose(void)  {  	__UCLIBC_MUTEX_LOCK(__resolv_lock); @@ -3549,9 +3549,7 @@ __res_iclose(void)  	}  #endif  	memset(&_res, 0, sizeof(_res)); -	/* the loop is only to make gcc happy */ -	while(1) -		__UCLIBC_MUTEX_UNLOCK(__resolv_lock); +	__UCLIBC_MUTEX_UNLOCK(__resolv_lock);  }  /*  | 
