examples/vm_power: fix max length of unix socket path
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Dec 2014 15:03:51 +0000 (15:03 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 00:04:06 +0000 (01:04 +0100)
commit0d74597c1b4ff660b3fb6cd97c7d86643d42065b
tree528c8cf148551b19d966a33de852611727ff0118
parent95df1d78c66567a229667acfed290ced6fef8b61
examples/vm_power: fix max length of unix socket path

The length of the path to a unix socket is not PATH_MAX but instead is
UNIX_PATH_MAX which is generally just over 100 bytes in size. It's not
actually defined in sys/un.h on linux - despite the man page referencing
it, so calculate the size in the case where it's not defined.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples/vm_power_manager/channel_manager.c
examples/vm_power_manager/channel_manager.h