cleanup: move declarations of external objects into header files
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 May 2011 10:13:59 +0000 (11:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2011 15:34:21 +0000 (16:34 +0100)
commit08ee90a207d1a9c0b3e34d1db06cd7502ad48990
tree1125c3a895b088253687ef10d1fcdf3cdd28acf8
parent18ca0b4428846396356378dfb5949bbc3839a3be
cleanup: move declarations of external objects into header files

It is not a good idea to declare external objects in .c files.  Every
external object (ie, object with external linkage) should be declared
exactly once in a .h file, and every .c file that refers to it or
defines it should #include that header.

When combined with appropriate compiler warnings, this ensures that
every file sees the same signature for every such object.  (At least
for functions.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
conffile.c
log.c
modules.c
secnet.h