Ignore:
Timestamp:
Oct 21, 1997, 4:17:12 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ae35953d
Parents:
f33a3f2a
Message:

Added casts and fixed line break.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/malloc.c

    rf33a3f2a r4fd61795  
    7878    u32_address = (unsigned int)sbrk(length);
    7979
    80     if (u32_address == -1) {
     80    if (u32_address == (rtems_unsigned32) -1) {
    8181      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
    8282      /* DOES NOT RETURN!!! */
     
    166166    the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
    167167
    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)
    169170      return (void *) 0;
    170171
Note: See TracChangeset for help on using the changeset viewer.