nbd-server: fix parse_cfile() to not modify any global variables
authorTuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
Fri, 4 Jan 2013 20:49:48 +0000 (22:49 +0200)
committerWouter Verhelst <w@uter.be>
Sat, 5 Jan 2013 01:05:41 +0000 (02:05 +0100)
commitb823b3bdb71c4f857c04d7334433ccee302f6c9b
tree4af53f81460d157623207396b030f854b42b78e2
parent340e5d183c5108f61480b9fa8bf0b675f2839ae3
nbd-server: fix parse_cfile() to not modify any global variables

This change allows parse_cfile() to be called without any side-effects
and passes the decision of what to do with parsed results to the
caller.

Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
nbd-server.c