[BACK]Return to biosboot.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sbin / gpt

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sbin/gpt/biosboot.c between version 1.3 and 1.4

version 1.3, 2011/08/17 00:45:55 version 1.4, 2011/08/17 12:27:50
Line 212  biosboot(int fd)
Line 212  biosboot(int fd)
   
         hdr = gpt->map_data;          hdr = gpt->map_data;
   
         for (int j = 0; j < le32toh(hdr->hdr_entries); j++) {          for (uint32_t j = 0; j < le32toh(hdr->hdr_entries); j++) {
                 ent = (void*)((char*)tbl->map_data + j * le32toh(hdr->hdr_entsz));                  ent = (void*)((char*)tbl->map_data + j * le32toh(hdr->hdr_entsz));
                 ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE;                  ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE;
         }          }
Line 231  biosboot(int fd)
Line 231  biosboot(int fd)
   
         hdr = tpg->map_data;          hdr = tpg->map_data;
   
         for (int j = 0; j < le32toh(hdr->hdr_entries); j++) {          for (uint32_t j = 0; j < le32toh(hdr->hdr_entries); j++) {
                 ent = (void*)((char*)lbt->map_data + j * le32toh(hdr->hdr_entsz));                  ent = (void*)((char*)lbt->map_data + j * le32toh(hdr->hdr_entsz));
                 ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE;                  ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE;
         }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>