Skip to contentSkip to conversation

drivers/isdn/hardware/eicon/os_4bri.c: correct the xdiLoadFile() signature

PATCH New Adrian Bunk 1 participant 1 message Nov 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/isdn/hardware/eicon/os_4bri.c: correct the xdiLoadFile() signature

It's not good if caller and callee disagree regarding the type of the arguments.

In this case, this could cause problems on 64bit architectures.

drivers/isdn/hardware/eicon/os_4bri.c renamed from drivers/isdn/hardware/eicon/os_4bri.c.old +2 -1
@@ -16,6 +16,7 @@
 #include "diva_pci.h"
 #include "mi_pc.h"
 #include "dsrv4bri.h"
+#include "helpers.h"
 
 static void *diva_xdiLoadFileFile = NULL;
 static dword diva_xdiLoadFileLength = 0;
@@ -815,7 +816,7 @@
 	return (ret);
 }
 
-void *xdiLoadFile(char *FileName, unsigned long *FileLength,
+void *xdiLoadFile(char *FileName, dword *FileLength,
 		  unsigned long lim)
 {
 	void *ret = diva_xdiLoadFileFile;