Code cleanup
authorFelix Morgner <felix.morgner@gmail.com>
Fri, 2 May 2014 10:05:21 +0000 (12:05 +0200)
committerFelix Morgner <felix.morgner@gmail.com>
Fri, 2 May 2014 11:31:36 +0000 (13:31 +0200)
commitbb5f5ae82bdcb7b5189032940d0b609dc12be70b
treea86cef8b0810123ed24e1c3c8c825da2026c70b0
parent2aa733ee47fd6a345e2578f7837acbaa1cea3ca5
Code cleanup

This patchset is mainly consisting of code cleanups and maintainance.

- Introduced new header util.h containing utility functions to convert
  addresses to char* typed string representations in a generic way and
  to get the port of an address as an int. There are also functions that
  work with client structures

- Replaced occurences of older conversions with the new functions

- Replaced hardcoded values with preprocessor macros where applicable

- Reduced code duplication resulting from new IPv6 support where
  possible

- Other general cleanups where applicable
src/CMakeLists.txt
src/ban.c
src/client.c
src/client.h
src/log.c
src/server.c
src/util.c [new file with mode: 0644]
src/util.h [new file with mode: 0644]