From a85b6fe2c4ff3b226b99bded919b9efc3d26c43b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 2 Oct 2009 14:55:19 +0200 Subject: [PATCH] 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 84b54f0684d..342fb822b18 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 09ada9c8173..6a20fb0efeb 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;