On Thu, Apr 24, 2014 at 10:26:26AM -0700, Gurucharan Shetty wrote: > On Thu, Apr 24, 2014 at 9:26 AM, Ben Pfaff <b...@nicira.com> wrote: > > On Thu, Apr 24, 2014 at 08:31:04AM -0700, Gurucharan Shetty wrote: > >> We have some common code between daemon-unix.c and > >> daemon-windows.c. Move them to daemon.c > >> > >> Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> > > > > "sparse" reports: > > > > ../lib/daemon-unix.c:42:6: warning: symbol 'detach' was not declared. > > Should it be static? > > ../lib/daemon-unix.c:46:6: warning: symbol 'pidfile' was not declared. > > Should it be static? > Sigh, I apparently forget to run sparse when it really matters.
It happens. > > which is pointing out that it's unusual to have global symbols defined > > without a prior "extern" declaration for the same global symbol > > (usually in a header). > > > > The "normal" way to do that is to add an extern declaration in a > > header, in this case perhaps in a daemon-private.h or similar that > > would only be included by daemon-{unix,windows].c. > Thanks for the explanation. I suppose I can also include > daemon-private.h inside daemon.c and hence avoid the extern > declaration in daemon.c That is what I would do. > v2 follows. Thanks. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev