Changeset a000878c in mainline for uspace/srv/net/netif/lo/lo.c


Ignore:
Timestamp:
2010-02-25T19:11:25Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
958de16
Parents:
a634485
Message:

make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netif/lo/lo.c

    ra634485 ra000878c  
    102102int netif_get_addr_message( device_id_t device_id, measured_string_ref address ){
    103103        if( ! address ) return EBADMEM;
    104         address->value = DEFAULT_ADDR;
     104        address->value = str_dup(DEFAULT_ADDR);
    105105        address->length = DEFAULT_ADDR_LEN;
    106106        return EOK;
Note: See TracChangeset for help on using the changeset viewer.