Changeset 257feec in mainline for uspace/srv/net/dnsrsrv/transport.c


Ignore:
Timestamp:
2013-06-27T12:48:32Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f391e9
Parents:
679ee84
Message:

cstyle (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsrsrv/transport.c

    r679ee84 r257feec  
    208208                if (rc != EOK)
    209209                        goto error;
    210 
     210               
    211211                treq = treq_create(req);
    212212                if (treq == NULL) {
     
    214214                        goto error;
    215215                }
    216 
    217 
     216               
    218217                fibril_mutex_lock(&treq->done_lock);
    219218                while (treq->done != true) {
     
    225224                        }
    226225                }
    227 
     226               
    228227                fibril_mutex_unlock(&treq->done_lock);
    229 
     228               
    230229                if (rc != ETIMEOUT)
    231230                        break;
    232231        }
    233 
     232       
    234233        if (ntry >= REQ_RETRY_MAX) {
    235234                rc = EIO;
    236235                goto error;
    237236        }
    238 
     237       
    239238        if (treq->status != EOK) {
    240239                rc = treq->status;
    241240                goto error;
    242241        }
    243 
     242       
    244243        *rresp = treq->resp;
    245244        treq_destroy(treq);
    246245        free(req_data);
    247246        return EOK;
     247       
    248248error:
    249249        if (treq != NULL)
    250250                treq_destroy(treq);
     251       
    251252        free(req_data);
    252253        return rc;
Note: See TracChangeset for help on using the changeset viewer.