From c5508f70dd4fdc55c0e52b9f37d954804467d40a Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 18 May 2006 21:29:46 +0000
Subject: [PATCH] Rename 'y' variable in SLEEP macro for less collision (Funky
 things happen if the passed value contains the y variable)

---
 src/xpdev/genwrap.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h
index 81af42830c..574a641360 100644
--- a/src/xpdev/genwrap.h
+++ b/src/xpdev/genwrap.h
@@ -224,12 +224,12 @@ DLLEXPORT int DLLCALL	get_errno(void);
 #elif defined(__unix__) || defined(__APPLE__)
 
 	#if defined(_PTH_PTHREAD_H_)
-		#define SLEEP(x)		({ int y=x; struct timeval tv; \
-								tv.tv_sec=(y/1000); tv.tv_usec=((y%1000)*1000); \
+		#define SLEEP(x)		({ int sleep_msecs=x; struct timeval tv; \
+								tv.tv_sec=(sleep_msecs/1000); tv.tv_usec=((sleep_msecs%1000)*1000); \
 								pth_nap(tv); })
 	#else
-		#define SLEEP(x)		({	int y=x; struct timeval tv; \
-								tv.tv_sec=(y/1000); tv.tv_usec=((y%1000)*1000); \
+		#define SLEEP(x)		({	int sleep_msecs=x; struct timeval tv; \
+								tv.tv_sec=(sleep_msecs/1000); tv.tv_usec=((sleep_msecs%1000)*1000); \
 								select(0,NULL,NULL,NULL,&tv); })
 	#endif
 
-- 
GitLab