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


Ignore:
Timestamp:
2012-05-24T15:30:53Z (13 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa3704d
Parents:
15b794d (diff), df3f85f (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 with mainline

File:
1 moved

Legend:

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

    r15b794d r8ad5470  
    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.