From 0554f105a5fc43c51922e54bebce1c533b04e5a3 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 28 Aug 2005 22:40:19 +0000 Subject: [PATCH] Remove warning: "use of cast expressions as lvalues is deprecated" Reports have it that gcc 4 doesn't tolerate this. --- lib/driver/MSWindows/aspi32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/driver/MSWindows/aspi32.c b/lib/driver/MSWindows/aspi32.c index 31bae9eb..1323b99f 100644 --- a/lib/driver/MSWindows/aspi32.c +++ b/lib/driver/MSWindows/aspi32.c @@ -1,5 +1,5 @@ /* - $Id: aspi32.c,v 1.8 2005/03/06 00:54:50 rocky Exp $ + $Id: aspi32.c,v 1.9 2005/08/28 22:40:19 rocky Exp $ Copyright (C) 2004, 2005 Rocky Bernstein @@ -27,7 +27,7 @@ # include "config.h" #endif -static const char _rcsid[] = "$Id: aspi32.c,v 1.8 2005/03/06 00:54:50 rocky Exp $"; +static const char _rcsid[] = "$Id: aspi32.c,v 1.9 2005/08/28 22:40:19 rocky Exp $"; #include #include @@ -162,9 +162,9 @@ have_aspi( HMODULE *hASPI, return false; } - (FARPROC) *lpGetSupport = GetProcAddress( *hASPI, + *lpGetSupport = (void *) GetProcAddress( *hASPI, "GetASPI32SupportInfo" ); - (FARPROC) *lpSendCommand = GetProcAddress( *hASPI, + *lpSendCommand = (void *) GetProcAddress( *hASPI, "SendASPI32Command" ); /* make sure that we've got both function addresses */