Changeset 132ab5d1 in mainline for uspace/lib/c/generic/as.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/as.c

    r8bfb163 r132ab5d1  
    4040#include <stdint.h>
    4141#include <bitops.h>
    42 #include <malloc.h>
    4342#include "private/libc.h"
    4443
     
    7776int as_area_resize(void *address, size_t size, unsigned int flags)
    7877{
    79         return __SYSCALL3(SYS_AS_AREA_RESIZE, (sysarg_t) address,
     78        return (int) __SYSCALL3(SYS_AS_AREA_RESIZE, (sysarg_t) address,
    8079            (sysarg_t) size, (sysarg_t) flags);
    8180}
     
    9190int as_area_destroy(void *address)
    9291{
    93         return __SYSCALL1(SYS_AS_AREA_DESTROY, (sysarg_t) address);
     92        return (int) __SYSCALL1(SYS_AS_AREA_DESTROY, (sysarg_t) address);
    9493}
    9594
     
    105104int as_area_change_flags(void *address, unsigned int flags)
    106105{
    107         return __SYSCALL2(SYS_AS_AREA_CHANGE_FLAGS, (sysarg_t) address,
     106        return (int) __SYSCALL2(SYS_AS_AREA_CHANGE_FLAGS, (sysarg_t) address,
    108107            (sysarg_t) flags);
    109108}
Note: See TracChangeset for help on using the changeset viewer.