Changeset 4fd61795 in rtems
- Timestamp:
- Oct 21, 1997, 4:17:12 PM (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ae35953d
- Parents:
- f33a3f2a
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libcsupport/src/malloc.c
rf33a3f2a r4fd61795 78 78 u32_address = (unsigned int)sbrk(length); 79 79 80 if (u32_address == -1) {80 if (u32_address == (rtems_unsigned32) -1) { 81 81 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 82 82 /* DOES NOT RETURN!!! */ … … 166 166 the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount); 167 167 168 if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size)) == -1) 168 if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size)) 169 == (rtems_unsigned32) -1) 169 170 return (void *) 0; 170 171 -
c/src/lib/libc/malloc.c
rf33a3f2a r4fd61795 78 78 u32_address = (unsigned int)sbrk(length); 79 79 80 if (u32_address == -1) {80 if (u32_address == (rtems_unsigned32) -1) { 81 81 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 82 82 /* DOES NOT RETURN!!! */ … … 166 166 the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount); 167 167 168 if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size)) == -1) 168 if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size)) 169 == (rtems_unsigned32) -1) 169 170 return (void *) 0; 170 171 -
cpukit/libcsupport/src/malloc.c
rf33a3f2a r4fd61795 78 78 u32_address = (unsigned int)sbrk(length); 79 79 80 if (u32_address == -1) {80 if (u32_address == (rtems_unsigned32) -1) { 81 81 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 82 82 /* DOES NOT RETURN!!! */ … … 166 166 the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount); 167 167 168 if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size)) == -1) 168 if (((rtems_unsigned32)starting_address = (void *)sbrk(the_size)) 169 == (rtems_unsigned32) -1) 169 170 return (void *) 0; 170 171
Note: See TracChangeset
for help on using the changeset viewer.