CVSROOT:        /cvs
Module name:    src
Changes by:     ren...@cvs.openbsd.org  2016/09/02 10:44:33

Modified files:
        usr.sbin/eigrpd: control.c control.h eigrpd.c eigrpd.h eigrpe.c 
                         eigrpe.h interface.c kroute.c log.h neighbor.c 
                         packet.c parse.y printconf.c query.c rde.c 
                         rde.h rde_dual.c reply.c rtp.c update.c 

Log message:
Make functions and variables static whenever possible.

style(9) says:
"Function prototypes for private functions (i.e., functions not used
elsewhere) go at the top of the first source module. In userland,
functions local to one source module should be declared 'static'".

The benefits of doing so include:
* clean up of the eigrpd global namespace;
* improved readability;
* more hints to the compiler/linker to generate more efficient code.

Additional changes:
* Declare all extern variables in header files;
* Clean up the indentation of all function prototypes and global
variables.

ok claudio@ benno@

Reply via email to