From 307b4b091e0bc298964e90888bf179431e32c134 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 19 Sep 2013 12:18:56 +0800 Subject: lib/log: Cleanup log API Rather than exposing log internals (through always_flush and set_stream), do all logging init through pb_log_init(). If pb_log_init() hasn't been called, pb_log will drop messages. Also, add a pb_debug() function, specifically for debugging information. Signed-off-by: Jeremy Kerr --- test/urls/parse-url.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test') diff --git a/test/urls/parse-url.c b/test/urls/parse-url.c index cfa6762..1688eab 100644 --- a/test/urls/parse-url.c +++ b/test/urls/parse-url.c @@ -8,17 +8,12 @@ int main(int argc, char **argv) { struct pb_url *url; - FILE *null; if (argc != 2 && argc != 3) { fprintf(stderr, "Usage: %s [update]\n", argv[0]); return EXIT_FAILURE; } - /* discard log output */ - null = fopen("/dev/null", "w"); - pb_log_set_stream(null); - url = pb_url_parse(NULL, argv[1]); if (!url) return EXIT_FAILURE; -- cgit v1.1