Alexandre Julliard : wnaspi32: Use explicit prototypes for function pointers.

Alexandre Julliard julliard at winehq.org
Fri Oct 2 11:02:25 CDT 2009


Module: wine
Branch: master
Commit: a85b6fe2c4ff3b226b99bded919b9efc3d26c43b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a85b6fe2c4ff3b226b99bded919b9efc3d26c43b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Oct  2 14:55:19 2009 +0200

wnaspi32: Use explicit prototypes for function pointers.

---

 dlls/wnaspi32/winaspi32.c |    2 +-
 include/wnaspi32.h        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wnaspi32/winaspi32.c b/dlls/wnaspi32/winaspi32.c
index 84b54f0..342fb82 100644
--- a/dlls/wnaspi32/winaspi32.c
+++ b/dlls/wnaspi32/winaspi32.c
@@ -270,7 +270,7 @@ ASPI_DebugPrintResult(SRB_ExecSCSICmd *prb)
 static DWORD
 WNASPI32_DoPosting( SRB_ExecSCSICmd *lpPRB, DWORD status )
 {
-	void (*SRB_PostProc)() = lpPRB->SRB_PostProc;
+	void (*SRB_PostProc)(SRB_ExecSCSICmd *) = lpPRB->SRB_PostProc;
 	BYTE SRB_Flags = lpPRB->SRB_Flags;
 	if( status == SS_PENDING )
 	{
diff --git a/include/wnaspi32.h b/include/wnaspi32.h
index 09ada9c..6a20fb0 100644
--- a/include/wnaspi32.h
+++ b/include/wnaspi32.h
@@ -150,7 +150,7 @@ typedef struct tagSRB32_ExecSCSICmd {
   BYTE        SRB_CDBLen;         /* 15 CDB Length */
   BYTE        SRB_HaStat;         /* 16 Host Adapter Status */
   BYTE        SRB_TargStat;       /* 17 Target Status */
-  void        (*SRB_PostProc)();  /* 18 Post routine */
+  void        (*SRB_PostProc)( struct tagSRB32_ExecSCSICmd * ); /* 18 Post routine */
   void        *SRB_Rsvd2;         /* 1C Reserved */
   BYTE        SRB_Rsvd3[16];      /* 20 Reserved for expansion */
   BYTE        CDBByte[16];        /* 30 SCSI CDB */
@@ -179,7 +179,7 @@ typedef struct tagSRB32_BusDeviceReset {
  BYTE         SRB_Rsvd1[12];            /* 0A Reserved for Alignment */
  BYTE         SRB_HaStat;               /* 16 Host Adapter Status */
  BYTE         SRB_TargStat;             /* 17 Target Status */
- void         (*SRB_PostProc)();        /* 18 Post routine */
+ void         (*SRB_PostProc)( struct tagSRB32_BusDeviceReset * ); /* 18 Post routine */
  void         *SRB_Rsvd2;               /* 1c Reserved */
  BYTE         SRB_Rsvd3[32];            /* 20 Reserved */
 } SRB_BusDeviceReset, *PSRB_BusDeviceReset;




More information about the wine-cvs mailing list