summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-29 10:35:38 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-29 10:35:38 +0200
commit71e35a85995efd9f5fbdc0ef9cd7b013389f4727 (patch)
tree6a3c57701373bd13b15735c9ccf566e8f0e067f9
parent116420b953d605297dba1827e71ff8eafc99a765 (diff)
ifpps: remove unused function snr_to_str
It's not used anywhere anymore, so remove it. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r--ifpps.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/ifpps.c b/ifpps.c
index dd03830..c411b3e 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -88,22 +88,6 @@ static void signal_handler(int number)
}
}
-static inline char *snr_to_str(int level)
-{
- if (level > 40)
- return "very good signal";
- if (level > 25 && level <= 40)
- return "good signal";
- if (level > 15 && level <= 25)
- return "poor signal";
- if (level > 10 && level <= 15)
- return "very poor signal";
- if (level <= 10)
- return "no signal";
-
- return "unknown";
-}
-
static inline int iswireless(const struct ifstat *stats)
{
return stats->wifi.bitrate > 0;