summaryrefslogtreecommitdiffstats
path: root/sys/compat/ndis/subr_pe.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2003-12-24 21:21:18 +0000
committerwpaul <wpaul@FreeBSD.org>2003-12-24 21:21:18 +0000
commit26d06d73267a9c6f0d0d324117810e0f07dc8fee (patch)
tree6b1ede72a6517823f33bfc1ecb0ca75aa8b68eab /sys/compat/ndis/subr_pe.c
parent207029e7f4fe639aadb4ad0cab98a06dd0e38a95 (diff)
downloadFreeBSD-src-26d06d73267a9c6f0d0d324117810e0f07dc8fee.zip
FreeBSD-src-26d06d73267a9c6f0d0d324117810e0f07dc8fee.tar.gz
- Fix some compiler warnings in subr_pe.c
- Add explicit cardbus attachment in if_ndis.c - Clean up after moving bus_setup_intr() in ndis_attach(). - When setting an ssid, program an empty ssid as a 1-byte string with a single 0 byte. The Microsoft documentation says this is how you're supposed to tell the NIC to attach to 'any' ssid. - Keep trace of callout handles for timers externally from the ndis_miniport_timer structs, and run through and clobber them all after invoking the haltfunc just in case the driver left one running. (We need to make sure all timers are cancelled on driver unload.) - Handle the 'cancelled' argument in ndis_cancel_timer() correctly.
Diffstat (limited to 'sys/compat/ndis/subr_pe.c')
-rw-r--r--sys/compat/ndis/subr_pe.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/compat/ndis/subr_pe.c b/sys/compat/ndis/subr_pe.c
index 8a2ae5b8..7132b31 100644
--- a/sys/compat/ndis/subr_pe.c
+++ b/sys/compat/ndis/subr_pe.c
@@ -79,7 +79,7 @@ pe_get_dos_header(imgbase, hdr)
{
uint16_t signature;
- if (imgbase == NULL || hdr == NULL)
+ if (imgbase == 0 || hdr == NULL)
return (EINVAL);
signature = *(uint16_t *)imgbase;
@@ -102,7 +102,7 @@ pe_is_nt_image(imgbase)
uint32_t signature;
image_dos_header *dos_hdr;
- if (imgbase == NULL)
+ if (imgbase == 0)
return (EINVAL);
signature = *(uint16_t *)imgbase;
@@ -130,7 +130,7 @@ pe_get_optional_header(imgbase, hdr)
image_dos_header *dos_hdr;
image_nt_header *nt_hdr;
- if (imgbase == NULL || hdr == NULL)
+ if (imgbase == 0 || hdr == NULL)
return(EINVAL);
if (pe_is_nt_image(imgbase))
@@ -158,7 +158,7 @@ pe_get_file_header(imgbase, hdr)
image_dos_header *dos_hdr;
image_nt_header *nt_hdr;
- if (imgbase == NULL || hdr == NULL)
+ if (imgbase == 0 || hdr == NULL)
return(EINVAL);
if (pe_is_nt_image(imgbase))
@@ -187,7 +187,7 @@ pe_get_section_header(imgbase, hdr)
image_nt_header *nt_hdr;
image_section_header *sect_hdr;
- if (imgbase == NULL || hdr == NULL)
+ if (imgbase == 0 || hdr == NULL)
return(EINVAL);
if (pe_is_nt_image(imgbase))
@@ -327,7 +327,7 @@ pe_get_section(imgbase, hdr, name)
int i, sections;
- if (imgbase == NULL || hdr == NULL)
+ if (imgbase == 0 || hdr == NULL)
return(EINVAL);
if (pe_is_nt_image(imgbase))
@@ -433,7 +433,7 @@ pe_get_import_descriptor(imgbase, desc, module)
image_import_descriptor *imp_desc;
char *modname;
- if (imgbase == NULL || module == NULL || desc == NULL)
+ if (imgbase == 0 || module == NULL || desc == NULL)
return(EINVAL);
offset = pe_directory_offset(imgbase, IMAGE_DIRECTORY_ENTRY_IMPORT);
@@ -509,7 +509,7 @@ pe_patch_imports(imgbase, module, functbl)
vm_offset_t *nptr, *fptr;
vm_offset_t func;
- if (imgbase == NULL || module == NULL || functbl == NULL)
+ if (imgbase == 0 || module == NULL || functbl == NULL)
return(EINVAL);
if (pe_get_import_descriptor(imgbase, &imp_desc, module))
OpenPOWER on IntegriCloud