ssa.c: Cosmetic formatting change

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
distrib.c: Removed blank line

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: Remove some unneeded braces

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
ssa.c: Change ssa_svc_query_path signature to return int rather than void

so can indicate whether path query worked or not (umad_send status)

Also, changed signature of ssa_svc_join (internal routine) similarly
but not yet the callers of this routine.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
core.c: Changed core_build_tree to return int rather than void

Started proper handling upon return of core_build_tree
in core_process_join and only place node in orphan list
if core_build_tree failed.

In core_process_leave, only remove node from orphan list if
found in that doubly linked list.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
distrib.c: Changed distrib_build_tree to return int rather than void

distrib_build_tree return status is status from ssa_svc_query_path

Also, in distrib_process_join, handle return from distrib_build_tree
by logging message on error.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
access/ssa_prdb.c: Standardized include paths for ssa_[db prdb].h

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
access/ssa_path_record_[data helper].h: Add extern "C" around headers

Signed-off-by: Hal Rosenstock <hal@mellanox.com>