Skip to content

Commit

Permalink
[TIPC] Avoid polluting the global namespace
Browse files Browse the repository at this point in the history
This patch adds a tipc_ prefix to all externally visible symbols.

Signed-off-by: Per Liden <per.liden@ericsson.com>
  • Loading branch information
Per Liden committed Jan 17, 2006
1 parent 1e63e68 commit 4323add
Show file tree
Hide file tree
Showing 44 changed files with 1,654 additions and 1,673 deletions.
10 changes: 5 additions & 5 deletions net/tipc/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ u32 tipc_get_addr(void)
}

/**
* addr_domain_valid - validates a network domain address
* tipc_addr_domain_valid - validates a network domain address
*
* Accepts <Z.C.N>, <Z.C.0>, <Z.0.0>, and <0.0.0>,
* where Z, C, and N are non-zero and do not exceed the configured limits.
*
* Returns 1 if domain address is valid, otherwise 0
*/

int addr_domain_valid(u32 addr)
int tipc_addr_domain_valid(u32 addr)
{
u32 n = tipc_node(addr);
u32 c = tipc_cluster(addr);
Expand All @@ -79,16 +79,16 @@ int addr_domain_valid(u32 addr)
}

/**
* addr_node_valid - validates a proposed network address for this node
* tipc_addr_node_valid - validates a proposed network address for this node
*
* Accepts <Z.C.N>, where Z, C, and N are non-zero and do not exceed
* the configured limits.
*
* Returns 1 if address can be used, otherwise 0
*/

int addr_node_valid(u32 addr)
int tipc_addr_node_valid(u32 addr)
{
return (addr_domain_valid(addr) && tipc_node(addr));
return (tipc_addr_domain_valid(addr) && tipc_node(addr));
}

4 changes: 2 additions & 2 deletions net/tipc/addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static inline char *addr_string_fill(char *string, u32 addr)
return string;
}

int addr_domain_valid(u32);
int addr_node_valid(u32 addr);
int tipc_addr_domain_valid(u32);
int tipc_addr_node_valid(u32 addr);

#endif
Loading

0 comments on commit 4323add

Please sign in to comment.