[S] Change in openvpn[master]: tapctl: Remove unused function dont_mute
"flichtenheld (Code Review)" <[email protected]>
| Newsgroups | gmane.network.openvpn.devel |
|---|---|
| Message-ID | <[email protected]> |
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1615?usp=email
to review the following change.
Change subject: tapctl: Remove unused function dont_mute
......................................................................
tapctl: Remove unused function dont_mute
Identified by cppcheck.
Change-Id: I87c40dc94035345add1162e5029e51288811cb09
Signed-off-by: Frank Lichtenheld <[email protected]>
---
M src/tapctl/error.h
M src/tapctl/main.c
2 files changed, 2 insertions(+), 11 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/15/1615/1
diff --git a/src/tapctl/error.h b/src/tapctl/error.h
index 9632b2f..f9586dc 100644
--- a/src/tapctl/error.h
+++ b/src/tapctl/error.h
@@ -109,11 +109,11 @@
return (level & M_DEBUG_LEVEL) <= x_debug_level;
}
-/** Return true if flags represent and enabled, not muted log level */
+/** Return true if flags represent */
static inline bool
msg_test(unsigned int flags)
{
- return check_debug_level(flags) && dont_mute(flags);
+ return check_debug_level(flags);
}
#endif /* ifndef ERROR_H */
diff --git a/src/tapctl/main.c b/src/tapctl/main.c
index 1d047dd..6a4a240 100644
--- a/src/tapctl/main.c
+++ b/src/tapctl/main.c
@@ -686,15 +686,6 @@
}
-bool
-dont_mute(unsigned int flags)
-{
- UNREFERENCED_PARAMETER(flags);
-
- return true;
-}
-
-
void
x_msg_va(const unsigned int flags, const char *format, va_list arglist)
{
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1615?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I87c40dc94035345add1162e5029e51288811cb09
Gerrit-Change-Number: 1615
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]>
Gerrit-Reviewer: plaisthos <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel