CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/05/23 13:09:25
Modified files:
usr.sbin/ldpd : accept.c address.c adjacency.c control.c
control.h hello.c init.c interface.c kroute.c
l2vpn.c labelmapping.c lde.c lde.h lde_lib.c
ldpd.c ldpd.h ldpe.c ldpe.h log.c log.h
neighbor.c notification.c packet.c parse.y
pfkey.c printconf.c socket.c
Log message:
Make functions and variables static whenever possible.
The benefits of this include:
* clean up of the ldpd global namespace;
* improved readability;
* more hints to the compiler/linker to generate more efficient code.
Whenever possible, move global static variables to a smaller scope
(function).
All extern variables are now declared in header files to avoid unnecessary
duplication.
This patch also cleans up the indentation of all function prototypes
and global variables.