Changeset 3db8889 in mainline
- Timestamp:
- 2010-03-24T06:49:42Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 40e29f5
- Parents:
- 5814ef7
- Location:
- uspace/srv/net
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip_messages.h
r5814ef7 r3db8889 85 85 */ 86 86 #define IP_SET_HEADERLEN(answer, value) \ 87 {ipcarg_t argument = ( value); IPC_SET_ARG2(*answer, argument);}87 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);} 88 88 89 89 /** Returns the network mask message parameter. -
uspace/srv/net/messages.h
r5814ef7 r3db8889 415 415 */ 416 416 #define IPC_SET_DEVICE(answer, value) \ 417 {ipcarg_t argument = ( value); IPC_SET_ARG1(*answer, argument);}417 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG1(*answer, argument);} 418 418 419 419 /** Sets the minimum address length in the message answer. … … 421 421 */ 422 422 #define IPC_SET_ADDR(answer, value) \ 423 {ipcarg_t argument = ( value); IPC_SET_ARG1(*answer, argument);}423 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG1(*answer, argument);} 424 424 425 425 /*@}*/ … … 433 433 */ 434 434 #define IPC_SET_PREFIX(answer, value) \ 435 {ipcarg_t argument = ( value); IPC_SET_ARG2(*answer, argument);}435 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);} 436 436 437 437 /*@}*/ … … 445 445 */ 446 446 #define IPC_SET_CONTENT(answer, value) \ 447 {ipcarg_t argument = ( value); IPC_SET_ARG3(*answer, argument);}447 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG3(*answer, argument);} 448 448 449 449 /*@}*/ … … 457 457 */ 458 458 #define IPC_SET_SUFFIX(answer, value) \ 459 {ipcarg_t argument = ( value); IPC_SET_ARG4(*answer, argument);}459 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG4(*answer, argument);} 460 460 461 461 /*@}*/ -
uspace/srv/net/socket/socket_messages.h
r5814ef7 r3db8889 116 116 */ 117 117 #define SOCKET_SET_SOCKET_ID(answer, value) \ 118 {ipcarg_t argument = ( value); IPC_SET_ARG1(answer, argument);}118 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG1(answer, argument);} 119 119 120 120 /** Returns the socket identifier message parameter. … … 128 128 */ 129 129 #define SOCKET_SET_READ_DATA_LENGTH(answer, value) \ 130 {ipcarg_t argument = ( value); IPC_SET_ARG1(answer, argument);}130 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG1(answer, argument);} 131 131 132 132 /** Returns the read data length message parameter. … … 158 158 */ 159 159 #define SOCKET_SET_DATA_FRAGMENT_SIZE(answer, value) \ 160 {ipcarg_t argument = ( value); IPC_SET_ARG2(answer, argument);}160 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(answer, argument);} 161 161 162 162 /** Sets the address length in the message answer. … … 164 164 */ 165 165 #define SOCKET_SET_ADDRESS_LENGTH(answer, value) \ 166 {ipcarg_t argument = ( value); IPC_SET_ARG3(answer, argument);}166 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG3(answer, argument);} 167 167 168 168 /** Returns the address length message parameter. … … 177 177 #define SOCKET_SET_HEADER_SIZE(answer, value) \ 178 178 \ 179 {ipcarg_t argument = ( value); IPC_SET_ARG3(answer, argument);}179 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG3(answer, argument);} 180 180 181 181 /** Returns the header size message parameter. -
uspace/srv/net/structures/packet/packet_server.c
r5814ef7 r3db8889 194 194 } 195 195 *answer_count = 2; 196 IPC_SET_ARG1(*answer, packet->packet_id);197 IPC_SET_ARG2(*answer, packet->length);196 IPC_SET_ARG1(*answer, (ipcarg_t) packet->packet_id); 197 IPC_SET_ARG2(*answer, (ipcarg_t) packet->length); 198 198 return EOK; 199 199 case NET_PACKET_CREATE_4: … … 203 203 } 204 204 *answer_count = 2; 205 IPC_SET_ARG1(*answer, packet->packet_id);206 IPC_SET_ARG2(*answer, packet->length);205 IPC_SET_ARG1(*answer, (ipcarg_t) packet->packet_id); 206 IPC_SET_ARG2(*answer, (ipcarg_t) packet->length); 207 207 return EOK; 208 208 case NET_PACKET_GET: … … 217 217 return ENOENT; 218 218 } 219 IPC_SET_ARG1(*answer, packet->length);219 IPC_SET_ARG1(*answer, (ipcarg_t) packet->length); 220 220 *answer_count = 1; 221 221 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.