Changeset ce1836e in mainline for uspace/srv/net/inetsrv/inetcfg.c


Ignore:
Timestamp:
2012-05-15T19:51:06Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2bd578a
Parents:
6df2202 (diff), bf9e6fc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge renaming and other improvements.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetcfg.c

    r6df2202 rce1836e  
    4646
    4747#include "addrobj.h"
    48 #include "inet.h"
     48#include "inetsrv.h"
    4949#include "inet_link.h"
    5050#include "inetcfg.h"
     
    7575        addr->ilink = ilink;
    7676        addr->name = str_dup(name);
    77         inet_addrobj_add(addr);
     77        rc = inet_addrobj_add(addr);
     78        if (rc != EOK) {
     79                log_msg(LVL_DEBUG, "Duplicate address name '%s'.", addr->name);
     80                inet_addrobj_delete(addr);
     81                return rc;
     82        }
    7883
    7984        iaddr.ipv4 = addr->naddr.ipv4;
Note: See TracChangeset for help on using the changeset viewer.