diff mbox

[5/5] batctl: adjust vis data file path

Message ID 1261242667-11525-5-git-send-email-lindner_marek@yahoo.de
State Rejected, archived
Headers show

Commit Message

Marek Lindner Dec. 19, 2009, 5:11 p.m. UTC
The kernel module changed the vis data file path which need to be changed
in batctl as well. This patch depends on the "splitting /proc vis file into
vis_server and vis_data" patch.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 batctl/vis.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/batctl/vis.c b/batctl/vis.c
index 450310c..f1e95ee 100644
--- a/batctl/vis.c
+++ b/batctl/vis.c
@@ -185,7 +185,7 @@  open_vis(void)
 
   strncpy(full_path, PROC_ROOT_PATH, strlen(PROC_ROOT_PATH));
   full_path[strlen(PROC_ROOT_PATH)] = '\0';
-  strncat(full_path, "vis", sizeof(full_path) - strlen(full_path));
+  strncat(full_path, "vis_data", sizeof(full_path) - strlen(full_path));
 
   return fopen(full_path, "r");
 }