Factorisation of the unix socket path computation 08/14608/1
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Wed, 8 Jan 2014 14:54:39 +0000 (15:54 +0100)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Wed, 8 Jan 2014 14:54:39 +0000 (15:54 +0100)
commiteddc7c8ff150507efb08dde7d39242c862f12810
tree37aa9a2f4614615c2f5c5eab696d6b94741a6f03
parentd2148011f8f1771996cfec4d43425a30efdf1b38
Factorisation of the unix socket path computation

The code that was appearing 3 times, doing the same thing
is factorized in a single function.

A check to a not possible error is removed.

Some memory clean-up is added to avoid a memory leak.

This commit prepares to multi-user because the path of the
unix sockets may depend of the user. Then having a central
place to perform this computation is simplier.

Change-Id: I88a4df4951bd240aef82e6960b9f91e6e4f1067d
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
src/framework/event/config.c