Ignore:
Timestamp:
2010-09-19T12:55:05Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fa0ad9, dc94cb2
Parents:
553f430
Message:

Coding style fixes.

This changeset converts the entire TCP code into HelenOS cstyle and improves
its general legibility by adding vertical spacing and removing unnecessary
clutter. It also attempts to suppress too deep nesting of blocks by
functional-equivalent code restructuralization.

This changeset brings no change in functionality (hopefully), but it should make
it easier to understand and eventually fix TCP code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/packet_remote.c

    r553f430 r7c8267b  
    7070        aid_t message = async_send_1(phone, NET_PACKET_GET, packet_id, &answer);
    7171        *packet = (packet_t) as_get_mappable_page(size);
    72         if (ERROR_OCCURRED(async_share_in_start_0_0(phone, *packet, size))
    73             || ERROR_OCCURRED(pm_add(*packet))) {
     72        if (ERROR_OCCURRED(async_share_in_start_0_0(phone, *packet, size)) ||
     73            ERROR_OCCURRED(pm_add(*packet))) {
    7474                munmap(*packet, size);
    7575                async_wait_for(message, NULL);
Note: See TracChangeset for help on using the changeset viewer.