Changeset c6023b7 in rtems for cpukit


Ignore:
Timestamp:
Oct 12, 2018, 12:40:52 PM (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
47b32a0
Parents:
9d1f17a9
Message:

posix: Fix unused result warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/mmap.c

    r9d1f17a9 rc6023b7  
    220220    /* private mappings of shared memory do not need special treatment. */
    221221    is_shared_shm = false;
    222     posix_memalign( &mapping->addr, PAGE_SIZE, len );
    223     if ( !mapping->addr ) {
     222    err = posix_memalign( &mapping->addr, PAGE_SIZE, len );
     223    if ( err != 0 ) {
    224224      free( mapping );
    225225      errno = ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.