Changeset 3090715 in mainline for uspace/lib/packet/generic/packet_server.c
- Timestamp:
- 2010-11-07T21:16:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 1d0d06a
- Parents:
- 9ce7eb5 (diff), 9ee9d5d (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/packet/generic/packet_server.c
r9ce7eb5 r3090715 42 42 #include <async.h> 43 43 #include <errno.h> 44 #include <err.h>45 44 #include <fibril_synch.h> 46 45 #include <unistd.h> … … 162 161 size_t max_content, size_t max_suffix) 163 162 { 164 ERROR_DECLARE;165 166 163 packet_t packet; 164 int rc; 167 165 168 166 // already locked … … 177 175 packet_init(packet, addr_len, max_prefix, max_content, max_suffix); 178 176 packet->magic_value = PACKET_MAGIC_VALUE; 179 if (ERROR_OCCURRED(pm_add(packet))) { 177 rc = pm_add(packet); 178 if (rc != EOK) { 180 179 munmap(packet, packet->length); 181 180 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.