Changeset 9bda5d90 in mainline for uspace/lib/mbr/libmbr.c
- Timestamp:
- 2013-05-03T01:20:11Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 469739f, c9f61150, f6c8fca
- Parents:
- 700f89e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/mbr/libmbr.c
r700f89e r9bda5d90 54 54 55 55 /** Allocate memory for mbr_t */ 56 mbr_t * mbr_alloc_mbr( )57 { 58 return alloc_br();56 mbr_t * mbr_alloc_mbr(void) 57 { 58 return malloc(sizeof(mbr_t)); 59 59 } 60 60 … … 405 405 406 406 // if it's extended, is there any other one? 407 if ( p->type == PT_EXTENDED&& parts->l_extended != NULL) {407 if ((p->type == PT_EXTENDED || p->type == PT_EXTENDED_LBA) && parts->l_extended != NULL) { 408 408 return ERR_EXTENDED_PRESENT; 409 409 } … … 425 425 } 426 426 parts->n_primary += 1; 427 428 if (p->type == PT_EXTENDED || p->type == PT_EXTENDED_LBA) 429 parts->l_extended = &(p->link); 427 430 } 428 431
Note:
See TracChangeset
for help on using the changeset viewer.