Changeset ccca251 in mainline


Ignore:
Timestamp:
2011-04-07T16:24:21Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
53debe0, 8436590, fc35e98
Parents:
3f56c90
Message:

improve comments, use C++ style comments for TODOs and FIXMEs

Location:
uspace
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/stats/stats.c

    r3f56c90 rccca251  
    265265                /* Threads */
    266266                if ((off = arg_parse_short_long(argv[i], "-t", "--task=")) != -1) {
    267                         /* TODO: Support for 64b range */
     267                        // TODO: Support for 64b range
    268268                        int tmp;
    269269                        int ret = arg_parse_int(argc, argv, &i, &tmp, off);
  • uspace/lib/net/generic/net_checksum.c

    r3f56c90 rccca251  
    106106                                seed = (seed << 1) ^ ((uint32_t) CRC_DIVIDER_BE);
    107107                        } else {
    108                                 /* shift otherwise */
     108                                /* Shift otherwise */
    109109                                seed <<= 1;
    110110                        }
  • uspace/lib/net/il/ip_client.c

    r3f56c90 rccca251  
    123123                return EOK;
    124124
    125         /* TODO IPv6 */
    126 /*      case AF_INET6:
     125        // TODO IPv6
     126#if 0
     127        case AF_INET6:
    127128                if (addrlen != sizeof(struct sockaddr_in6))
    128129                        return EINVAL;
     
    130131                address_in6 = (struct sockaddr_in6 *) addr;
    131132                return EOK;
    132 */
     133#endif
    133134
    134135        default:
     
    258259                header_in->data_length = htons(data_length);
    259260                return EOK;
    260         /* TODO IPv6 */
     261        // TODO IPv6
    261262        } else {
    262263                return EINVAL;
  • uspace/lib/net/include/ip_client.h

    r3f56c90 rccca251  
    5454    socklen_t, struct sockaddr *, socklen_t, size_t, void **, size_t *);
    5555
    56 /* TODO ipopt manipulation */
     56// TODO ipopt manipulation
    5757
    5858#endif
  • uspace/lib/net/tl/socket_core.c

    r3f56c90 rccca251  
    306306               
    307307        case AF_INET6:
    308                 /* TODO IPv6 */
     308                // TODO IPv6
    309309                break;
    310310        }
     
    376376
    377377        count = 0;
    378 //      socket_id = socket_globals.last_id;
     378#if 0
     379        socket_id = socket_globals.last_id;
     380#endif
    379381        do {
    380382                if (count < SOCKET_ID_TRIES) {
     
    388390                        if (socket_id < INT_MAX) {
    389391                                ++ socket_id;
    390 /*                      } else if(socket_globals.last_id) {
    391 *                               socket_globals.last_id = 0;
    392 *                               socket_id = 1;
    393 */                      } else {
     392#if 0
     393                        } else if(socket_globals.last_id) {
     394                                socket_globals.last_id = 0;
     395                                socket_id = 1;
     396#endif
     397                        } else {
    394398                                return ELIMIT;
    395399                        }
  • uspace/srv/hw/irc/apic/apic.c

    r3f56c90 rccca251  
    5656static int apic_enable_irq(sysarg_t irq)
    5757{
    58         /* FIXME: TODO */
     58        // FIXME: TODO
    5959        return ENOTSUP;
    6060}
  • uspace/srv/net/il/ip/ip.c

    r3f56c90 rccca251  
    365365               
    366366                if (ip_netif->dhcp) {
    367                         /* TODO dhcp */
     367                        // TODO dhcp
    368368                        net_free_settings(configuration, data);
    369369                        return ENOTSUP;
     
    398398                        }
    399399                } else {
    400                         /* TODO ipv6 in separate module */
     400                        // TODO ipv6 in separate module
    401401                        net_free_settings(configuration, data);
    402402                        return ENOTSUP;
     
    517517            ip_netif->dhcp ? "dhcp" : "static");
    518518       
    519         /* TODO ipv6 addresses */
     519        // TODO ipv6 addresses
    520520       
    521521        char address[INET_ADDRSTRLEN];
     
    946946
    947947        /* Greatest multiple of 8 lower than content */
    948         /* TODO even fragmentation? */
     948        // TODO even fragmentation?
    949949        length = length & ~0x7;
    950950       
     
    12121212        }
    12131213       
    1214         /* Ff the local host is the destination */
     1214        /* If the local host is the destination */
    12151215        if ((route->address.s_addr == dest->s_addr) &&
    12161216            (dest->s_addr != IPV4_LOCALHOST_ADDRESS)) {
     
    12791279        in_addr_t destination;
    12801280
    1281         /* TODO search set ipopt route? */
     1281        // TODO search set ipopt route?
    12821282        destination.s_addr = header->destination_address;
    12831283        return destination;
     
    13211321        if ((header->flags & IPFLAG_MORE_FRAGMENTS) ||
    13221322            IP_FRAGMENT_OFFSET(header)) {
    1323                 /* TODO fragmented */
     1323                // TODO fragmented
    13241324                return ENOTSUP;
    13251325        }
     
    14371437                phone = ip_prepare_icmp_and_get_phone(0, packet, header);
    14381438                if (phone >= 0) {
    1439                         /* ttl exceeded ICMP */
     1439                        /* TTL exceeded ICMP */
    14401440                        icmp_time_exceeded_msg(phone, ICMP_EXC_TTL, packet);
    14411441                }
     
    17771777                if ((type != ICMP_DEST_UNREACH) ||
    17781778                    (code != ICMP_HOST_UNREACH)) {
    1779                         /* No, something else */
     1779                        /* No, something else */
    17801780                        break;
    17811781                }
  • uspace/srv/vfs/vfs_ops.c

    r3f56c90 rccca251  
    611611void vfs_open_node(ipc_callid_t rid, ipc_call_t *request)
    612612{
    613         /* FIXME: check for sanity of the supplied fs, dev and index */
     613        // FIXME: check for sanity of the supplied fs, dev and index
    614614       
    615615        /*
Note: See TracChangeset for help on using the changeset viewer.