Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/packet/generic/packet_server.c

    r88b127b r376a7fd  
    4242#include <async.h>
    4343#include <errno.h>
     44#include <err.h>
    4445#include <fibril_synch.h>
    4546#include <unistd.h>
     
    161162    size_t max_content, size_t max_suffix)
    162163{
     164        ERROR_DECLARE;
     165
    163166        packet_t packet;
    164         int rc;
    165167
    166168        // already locked
     
    175177        packet_init(packet, addr_len, max_prefix, max_content, max_suffix);
    176178        packet->magic_value = PACKET_MAGIC_VALUE;
    177         rc = pm_add(packet);
    178         if (rc != EOK) {
     179        if (ERROR_OCCURRED(pm_add(packet))) {
    179180                munmap(packet, packet->length);
    180181                return NULL;
Note: See TracChangeset for help on using the changeset viewer.