Changeset 8b5690f in mainline for uspace/lib/c/include/ipc/packet.h


Ignore:
Timestamp:
2011-02-03T05:11:01Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba38f72c
Parents:
22027b6e (diff), 86d7bfa (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 mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/packet.h

    r22027b6e r8b5690f  
    3838#define LIBC_PACKET_MESSAGES_
    3939
    40 #include <ipc/ipc.h>
    4140#include <ipc/net.h>
    4241
     
    7069} packet_messages;
    7170
    72 /** Returns the protocol service message parameter. */
    73 #define ARP_GET_PROTO(call)     (services_t) IPC_GET_ARG2(*call)
     71/** Return the protocol service message parameter. */
     72#define ARP_GET_PROTO(call)  ((services_t) IPC_GET_ARG2(call))
    7473
    75 /** Returns the packet identifier message parameter. */
    76 #define IPC_GET_ID(call)        (packet_id_t) IPC_GET_ARG1(*call)
     74/** Return the packet identifier message parameter. */
     75#define IPC_GET_ID(call)  ((packet_id_t) IPC_GET_ARG1(call))
    7776
    78 /** Returns the maximal content length message parameter. */
    79 #define IPC_GET_CONTENT(call)   (size_t) IPC_GET_ARG1(*call)
     77/** Return the maximal content length message parameter. */
     78#define IPC_GET_CONTENT(call)  ((size_t) IPC_GET_ARG1(call))
    8079
    81 /** Returns the maximal address length message parameter. */
    82 #define IPC_GET_ADDR_LEN(call)  (size_t) IPC_GET_ARG2(*call)
     80/** Return the maximal address length message parameter. */
     81#define IPC_GET_ADDR_LEN(call)  ((size_t) IPC_GET_ARG2(call))
    8382
    84 /** Returns the maximal prefix length message parameter. */
    85 #define IPC_GET_PREFIX(call)    (size_t) IPC_GET_ARG3(*call)
     83/** Return the maximal prefix length message parameter. */
     84#define IPC_GET_PREFIX(call)  ((size_t) IPC_GET_ARG3(call))
    8685
    87 /** Returns the maximal suffix length message parameter. */
    88 #define IPC_GET_SUFFIX(call)    (size_t) IPC_GET_ARG4(*call)
     86/** Return the maximal suffix length message parameter. */
     87#define IPC_GET_SUFFIX(call)  ((size_t) IPC_GET_ARG4(call))
    8988
    9089#endif
Note: See TracChangeset for help on using the changeset viewer.