Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_nic.c

    racdb5bac r9d58539  
    104104       
    105105        nic_address_t address;
    106         memset(&address, 0, sizeof(nic_address_t));
     106        bzero(&address, sizeof(nic_address_t));
    107107       
    108108        int rc = nic_iface->get_address(dev, &address);
     
    173173       
    174174        nic_device_stats_t stats;
    175         memset(&stats, 0, sizeof(nic_device_stats_t));
     175        bzero(&stats, sizeof(nic_device_stats_t));
    176176       
    177177        int rc = nic_iface->get_stats(dev, &stats);
     
    208208       
    209209        nic_device_info_t info;
    210         memset(&info, 0, sizeof(nic_device_info_t));
     210        bzero(&info, sizeof(nic_device_info_t));
    211211       
    212212        int rc = nic_iface->get_device_info(dev, &info);
     
    399399        }
    400400       
    401         memset(address_list, 0, max_count * sizeof(nic_address_t));
     401        bzero(address_list, max_count * sizeof(nic_address_t));
    402402        nic_unicast_mode_t mode = NIC_UNICAST_DEFAULT;
    403403        size_t address_count = 0;
     
    503503        }
    504504       
    505         memset(address_list, 0, max_count * sizeof(nic_address_t));
     505        bzero(address_list, max_count * sizeof(nic_address_t));
    506506        nic_multicast_mode_t mode = NIC_MULTICAST_BLOCKED;
    507507        size_t address_count = 0;
     
    667667        }
    668668       
    669         memset(address_list, 0, max_count * sizeof(nic_address_t));
     669        bzero(address_list, max_count * sizeof(nic_address_t));
    670670        size_t address_count = 0;
    671671       
     
    759759       
    760760        nic_vlan_mask_t vlan_mask;
    761         memset(&vlan_mask, 0, sizeof(nic_vlan_mask_t));
     761        bzero(&vlan_mask, sizeof(nic_vlan_mask_t));
    762762       
    763763        int rc = nic_iface->vlan_get_mask(dev, &vlan_mask);
     
    932932        }
    933933       
    934         memset(data, 0, max_length);
     934        bzero(data, max_length);
    935935       
    936936        int rc = nic_iface->wol_virtue_probe(dev, id, &type, max_length,
     
    982982        }
    983983       
    984         memset(id_list, 0, max_count * sizeof (nic_wv_id_t));
     984        bzero(id_list, max_count * sizeof (nic_wv_id_t));
    985985       
    986986        int rc = nic_iface->wol_virtue_list(dev, type, max_count, id_list,
     
    10471047        }
    10481048       
    1049         memset(data, 0, max_length);
     1049        bzero(data, max_length);
    10501050       
    10511051        int rc = nic_iface->wol_load_info(dev, &type, max_length, data,
Note: See TracChangeset for help on using the changeset viewer.