dup_serve() does not modify the source server (as it should be), so the pointer should be declared const.
Signed-off-by: Tuomas Jorma Juhani Räsänen <[email protected]> --- nbd-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd-server.c b/nbd-server.c index 217a07a..8d37d06 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -650,7 +650,7 @@ void remove_server(gpointer s) { * @param s the old server we want to duplicate * @return new duplicated server **/ -SERVER* dup_serve(SERVER *s) { +SERVER* dup_serve(const SERVER *const s) { SERVER *serve = NULL; serve=g_new0(SERVER, 1); -- 1.7.10.4 ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ 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_122512 _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
