projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/package/freifunk-watchdog: fixup build and package dependencies, fix hysteres...
[project/luci.git]
/
contrib
/
package
/
freifunk-watchdog
/
src
/
watchdog.c
diff --git
a/contrib/package/freifunk-watchdog/src/watchdog.c
b/contrib/package/freifunk-watchdog/src/watchdog.c
index
b431b6d
..
d4ccff8
100644
(file)
--- a/
contrib/package/freifunk-watchdog/src/watchdog.c
+++ b/
contrib/package/freifunk-watchdog/src/watchdog.c
@@
-69,7
+69,7
@@
static int iw_get_channel(int iwfd, const char *ifname, int *channel)
}
for(i = 0; i < range->num_frequency; i++)
}
for(i = 0; i < range->num_frequency; i++)
- {
+
{
cmp_freq = ((double)range->freq[i].m) * pow(10, range->freq[i].e);
if( cmp_freq == cur_freq )
{
cmp_freq = ((double)range->freq[i].m) * pow(10, range->freq[i].e);
if( cmp_freq == cur_freq )
{
@@
-302,7
+302,7
@@
static int do_daemon(void)
}
/* Check channel */
}
/* Check channel */
- if( channel != curif->channel )
+
else
if( channel != curif->channel )
{
syslog(LOG_WARNING, "Channel mismatch on %s: current=%d wanted=%d",
curif->ifname, channel, curif->channel);
{
syslog(LOG_WARNING, "Channel mismatch on %s: current=%d wanted=%d",
curif->ifname, channel, curif->channel);