diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-30 05:52:51 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-30 05:52:51 +0000 |
commit | 5dc9a4629777a9197eecc4d8ba27065036be263c (patch) | |
tree | 16c0f6fa82afe2b7d12605e2dd42cbe81e91cffb /bin/systrace/alias.c | |
parent | c1773af84c6c752eb4af2d015cc80e7085fb256c (diff) |
SPLAY_INSERT is a void function
Diffstat (limited to 'bin/systrace/alias.c')
-rw-r--r-- | bin/systrace/alias.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/systrace/alias.c b/bin/systrace/alias.c index 3ef6439d2eb..5821cb64fe3 100644 --- a/bin/systrace/alias.c +++ b/bin/systrace/alias.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alias.c,v 1.2 2002/07/19 14:38:57 itojun Exp $ */ +/* $OpenBSD: alias.c,v 1.3 2002/07/30 05:52:50 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -132,9 +132,7 @@ systrace_reverse(const char *emulation, const char *name) TAILQ_INIT(&reverse->revl); - if (SPLAY_INSERT(revtr, &revroot, reverse) != NULL) - errx(1, "%s: %s-%s: double revalias", - __func__, emulation, name); + SPLAY_INSERT(revtr, &revroot, reverse); return (reverse); } @@ -156,8 +154,7 @@ systrace_new_alias(const char *emulation, const char *name, strlcpy(alias->aname, aname, sizeof(alias->aname)); alias->nargs = 0; - if (SPLAY_INSERT(alitr, &aliasroot, alias) != NULL) - errx(1, "%s: %s-%s: double alias", __func__, emulation, name); + SPLAY_INSERT(alitr, &aliasroot, alias); reverse = systrace_reverse(aemul, aname); alias->reverse = reverse; |