projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/graph_instance.[ch]: Implement "inst_ident_matches" in addition to "inst_matches_...
[collection4.git]
/
src
/
graph_ident.c
diff --git
a/src/graph_ident.c
b/src/graph_ident.c
index
cb9a361
..
36e066d
100644
(file)
--- a/
src/graph_ident.c
+++ b/
src/graph_ident.c
@@
-377,12
+377,8
@@
int ident_compare (const graph_ident_t *i0, /* {{{ */
_Bool ident_matches (const graph_ident_t *selector, /* {{{ */
const graph_ident_t *ident)
{
_Bool ident_matches (const graph_ident_t *selector, /* {{{ */
const graph_ident_t *ident)
{
- if ((selector == NULL)
&&
(ident == NULL))
+ if ((selector == NULL)
||
(ident == NULL))
return (0);
return (0);
- else if (selector == NULL)
- return (-1);
- else if (ident == NULL)
- return (1);
if (!part_matches (selector->host, ident->host))
return (0);
if (!part_matches (selector->host, ident->host))
return (0);