summaryrefslogtreecommitdiff
path: root/net/batman-adv/vis.h
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-12-20 15:30:40 +0400
committerMarek Lindner <lindner_marek@yahoo.de>2012-02-16 22:50:20 +0400
commit032b7969f8874d5ddc65691cd3d008beffd2a09e (patch)
tree73a0e8bdd4dcf0f1dc3407b17df0424106027f9d /net/batman-adv/vis.h
parentea3d2fd1b11fb3ef8706a48ece0a49a61bcd08bc (diff)
downloadlinux-032b7969f8874d5ddc65691cd3d008beffd2a09e.tar.xz
batman-adv: convert time_after instances to has_timed_out
To increase readability the has_timed_out() functions has been introduced. This patch converts existing time_after() calls to use this wrapper function (if applicable). This patch also converts all timeouts to miliseconds to be consistent. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Diffstat (limited to 'net/batman-adv/vis.h')
-rw-r--r--net/batman-adv/vis.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/vis.h b/net/batman-adv/vis.h
index 31b820d07f23..851bc4f1e358 100644
--- a/net/batman-adv/vis.h
+++ b/net/batman-adv/vis.h
@@ -22,7 +22,8 @@
#ifndef _NET_BATMAN_ADV_VIS_H_
#define _NET_BATMAN_ADV_VIS_H_
-#define VIS_TIMEOUT 200 /* timeout of vis packets in seconds */
+#define VIS_TIMEOUT 200000 /* timeout of vis packets
+ * in miliseconds */
int vis_seq_print_text(struct seq_file *seq, void *offset);
void receive_server_sync_packet(struct bat_priv *bat_priv,