Changeset 8b655705 in mainline for uspace/lib/net/generic/generic.c
- Timestamp:
- 2011-04-15T19:38:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9dd730d1
- Parents:
- 6b9e85b (diff), b2fb47f (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/generic/generic.c
r6b9e85b r8b655705 36 36 37 37 #include <generic.h> 38 39 38 #include <async.h> 40 #include <ipc/ipc.h>41 39 #include <ipc/services.h> 42 43 40 #include <net/device.h> 44 41 #include <adt/measured_strings.h> … … 109 106 return EBADMEM; 110 107 111 / / request the address108 /* Request the address */ 112 109 message_id = async_send_1(phone, (sysarg_t) message, 113 110 (sysarg_t) device_id, NULL); … … 115 112 async_wait_for(message_id, &result); 116 113 117 / / if not successful114 /* If not successful */ 118 115 if ((string == EOK) && (result != EOK)) { 119 / / clear the data116 /* Clear the data */ 120 117 free(*address); 121 118 free(*data); … … 245 242 return EBADMEM; 246 243 247 / / request the translation244 /* Request the translation */ 248 245 message_id = async_send_3(phone, (sysarg_t) message, 249 246 (sysarg_t) device_id, (sysarg_t) count, (sysarg_t) service, NULL); … … 252 249 async_wait_for(message_id, &result); 253 250 254 / / if not successful251 /* If not successful */ 255 252 if ((string == EOK) && (result != EOK)) { 256 / / clear the data253 /* Clear the data */ 257 254 free(*translation); 258 255 free(*data);
Note:
See TracChangeset
for help on using the changeset viewer.