usdf_getinfo: only free addrinfo if actually allocated

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #271 from rfaucett/pr/usnic_freeai

usdf_getinfo: only free addrinfo if actually allocated
fi_eq.3: per #268, return -FI_ETIMEDOUT on timeout instead of 0.

Also specify that a negative timeout means an infinite timeout.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
usnic: return -FI_ETIMEDOUT from eq_sread upon timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
sockets: return -FI_TIMEDOUT upon timeout, and honor inifite timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
verbs: return -FI_TIMEDOUT upon timeout

Simplify the loop a bit by using while(1) and returning from directly
inside the loop.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>