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


Ignore:
Timestamp:
2010-02-25T19:11:25Z (15 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/net/net.c

    ra634485 ra000878c  
    154154 *  @returns Other error codes as defined for the add_configuration() function.
    155155 */
    156 int     read_netif_configuration( char * name, netif_ref netif );
     156int     read_netif_configuration( const char * name, netif_ref netif );
    157157
    158158/** Networking module global data.
     
    413413}
    414414
    415 int read_netif_configuration( char * name, netif_ref netif ){
     415int read_netif_configuration( const char * name, netif_ref netif ){
    416416        // read the netif configuration file
    417417        return read_configuration_file( CONF_DIR, name, & netif->configuration );
     
    485485
    486486#ifdef CONFIG_NETIF_DP8390
    487         char *          conf_files[] = { "lo", "ne2k" };
     487        const char *            conf_files[] = { "lo", "ne2k" };
    488488#else
    489         char *          conf_files[] = { "lo" };
     489        const char *            conf_files[] = { "lo" };
    490490#endif
    491491
Note: See TracChangeset for help on using the changeset viewer.