[Pkg-voip-commits] [bctoolbox] 05/60: Clean code

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit 6bf440e9fafef81ad64a39927074d8989a429fbf
Author: Benjamin Reis <benjamin.reis at belledonne-communications.com>
Date:   Thu Mar 30 15:38:11 2017 +0200

    Clean code
---
 tester/bctoolbox_tester.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tester/bctoolbox_tester.c b/tester/bctoolbox_tester.c
index a5d4a99..3cfcd15 100644
--- a/tester/bctoolbox_tester.c
+++ b/tester/bctoolbox_tester.c
@@ -66,11 +66,7 @@ int bctoolbox_tester_set_log_file(const char *filename) {
 		return -1;
 	}
 	bctbx_message("Redirecting traces to file [%s]", filename);
-	const char *path = dirname(filename);
-	const char *name = basename(filename);
-	bctbx_message("path : %s, name : %s \n", path, name);
-	BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, path, name, log_file);
-	bctbx_message("Adding handler");
+	BctoolboxLogHandler* filehandler = bctbx_create_file_log_handler(0, dirname(filename), basename(filename), log_file);
 	bctbx_add_log_handler(filehandler);
 	return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list