Error reporting and handling should be streamlined. Currently there are quite many different ways errors are being logged, reported and handled.
This shall be the first baby step towards more uniform error management. Signed-off-by: Tuomas Jorma Juhani Räsänen <[email protected]> --- nbd-server.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nbd-server.c b/nbd-server.c index ec617a9..ca861ed 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -2535,14 +2535,6 @@ void daemonize(SERVER* serve) { * The stuff above daemonize() isn't. */ -void serve_err(SERVER* serve, const char* msg) G_GNUC_NORETURN; - -void serve_err(SERVER* serve, const char* msg) { - g_message("Export of %s on port %d failed:", serve->exportname, - serve->port); - err(msg); -} - /** * Set up user-ID and/or group-ID **/ -- 1.7.10.4 ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
