From: Leandro Lucarella Date: Fri, 27 Feb 2009 18:28:18 +0000 (-0200) Subject: Use own constants in tipc::sockaddr constructor X-Git-Url: https://git.llucax.com/software/posixx.git/commitdiff_plain/9974031fc24833abc6d772f4b9b128be2e5e8e7e Use own constants in tipc::sockaddr constructor --- diff --git a/src/linux/tipc.hpp b/src/linux/tipc.hpp index cb33335..cb56413 100644 --- a/src/linux/tipc.hpp +++ b/src/linux/tipc.hpp @@ -649,7 +649,7 @@ inline posixx::linux::tipc::sockaddr::sockaddr(portid port, scope_t s) throw () { family = AF_TIPC; - addrtype = TIPC_ADDR_ID; + addrtype = ID; scope = s; addr.id = port; } @@ -659,7 +659,7 @@ posixx::linux::tipc::sockaddr::sockaddr(name name, scope_t s, tipc::addr d) throw () { family = AF_TIPC; - addrtype = TIPC_ADDR_NAME; + addrtype = NAME; scope = s; addr.name.name = name; addr.name.domain = d; @@ -669,7 +669,7 @@ inline posixx::linux::tipc::sockaddr::sockaddr(nameseq nameseq, scope_t s) throw () { family = AF_TIPC; - addrtype = TIPC_ADDR_NAMESEQ; + addrtype = NAMESEQ; scope = s; addr.nameseq = nameseq; }