From: Nickolai Zeldovich Date: Mon, 29 Jul 2002 23:48:39 +0000 (+0000) Subject: Remove two unnecessary casts that prevented compilation on Linux 2.2. X-Git-Tag: openafs-devel_1_3_3~42 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=e9a6a539449ff3144169aa8ca5fc38bab613ab53;hp=f9677cc5d0025b4cef84bb1e24004a1bf7b6cb9b Remove two unnecessary casts that prevented compilation on Linux 2.2. --- diff --git a/src/rx/LINUX/rx_kmutex.c b/src/rx/LINUX/rx_kmutex.c index 1df1810..eecddc5 100644 --- a/src/rx/LINUX/rx_kmutex.c +++ b/src/rx/LINUX/rx_kmutex.c @@ -75,7 +75,7 @@ int afs_cv_wait(afs_kcondvar_t *cv, afs_kmutex_t *l, int sigok) struct wait_queue wait = { current, NULL }; #endif - add_wait_queue((wait_queue_head_t *)cv, &wait); + add_wait_queue(cv, &wait); set_current_state(TASK_INTERRUPTIBLE); if (isAFSGlocked) AFS_GUNLOCK(); @@ -115,7 +115,7 @@ void afs_cv_timedwait(afs_kcondvar_t *cv, afs_kmutex_t *l, int waittime) struct wait_queue wait = { current, NULL }; #endif - add_wait_queue((wait_queue_head_t *)cv, &wait); + add_wait_queue(cv, &wait); set_current_state(TASK_INTERRUPTIBLE); if (isAFSGlocked) AFS_GUNLOCK();