b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH v2] alfred: vis: Don't fail when debugfs cannot be mounted
Date: Tue,  1 Nov 2016 13:19:37 +0100	[thread overview]
Message-ID: <20161101121937.31890-1-sven@narfation.org> (raw)

The vis server is supposed to use netlink when available. This allows to
work on systems without debugfs and under network namespaces. Thus it is
now not strictly required anymore to have debugfs available.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 vis/vis.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/vis/vis.c b/vis/vis.c
index f4d13c7..51d7f5c 100644
--- a/vis/vis.c
+++ b/vis/vis.c
@@ -1120,13 +1120,7 @@ static struct globals *vis_init(int argc, char *argv[])
 
 static int vis_server(struct globals *globals)
 {
-	char *debugfs_mnt;
-
-	debugfs_mnt = debugfs_mount(NULL);
-	if (!debugfs_mnt) {
-		fprintf(stderr, "Error - can't mount or find debugfs\n");
-		return EXIT_FAILURE;
-	}
+	debugfs_mount(NULL);
 
 	globals->push = (struct alfred_push_data_v0 *) globals->buf;
 	globals->vis_data = (struct vis_v1 *) (globals->buf + sizeof(*globals->push) + sizeof(struct alfred_data));
-- 
2.10.1


             reply	other threads:[~2016-11-01 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-01 12:19 Sven Eckelmann [this message]
2016-11-01 15:00 ` [B.A.T.M.A.N.] [PATCH v2] alfred: vis: Don't fail when debugfs cannot be mounted Simon Wunderlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161101121937.31890-1-sven@narfation.org \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).