Package: ndiswrapper-source
Followup-For: Bug #353020

Here's the diff for /usr/src/modules/ndiswrapper/wrapper.c ; I attached
a version with unexpanded tabs that will actually apply.  After this
change, ndiswrapper compiles and works for me.

282c282
<       TRACEENTER1("driver halt is at %p", miniport->halt);
---
>       TRACEENTER1("driver halt is at %p", (miniport->halt));
286c286
<       LIN2WIN1(miniport->halt, handle->adapter_ctx);
---
>       LIN2WIN1((miniport->halt), handle->adapter_ctx);
--- wrapper.c.orig	2006-03-23 16:55:01.000000000 -0500
+++ wrapper.c	2006-03-23 17:12:40.000000000 -0500
@@ -279,11 +279,11 @@
 void miniport_halt(struct ndis_handle *handle)
 {
 	struct miniport_char *miniport = &handle->driver->miniport_char;
-	TRACEENTER1("driver halt is at %p", miniport->halt);
+	TRACEENTER1("driver halt is at %p", (miniport->halt));
 
 	miniport_set_int(handle, OID_PNP_SET_POWER, NdisDeviceStateD3);
 
-	LIN2WIN1(miniport->halt, handle->adapter_ctx);
+	LIN2WIN1((miniport->halt), handle->adapter_ctx);
 
 	ndis_exit_handle(handle);
 	misc_funcs_exit_handle(handle);

Reply via email to