trivial: fix whitespace

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: basic sharing of common functions in common_socket.c

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: create dependency on the Makefile itself

If something changes in the Makefile, then the source files
likely need to be recompiled.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: introduce a global.h header file

For now only to use common exit return codes.  This can be useful
if e.g. QA want to use my programs in their scripts.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: actually use the global.h

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: socket wrapper functions with error handling like "Stevens"

Start with Socket() and Setsockopt() wrappers.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>