diff options
author | John Kohl <jtkohl@mit.edu> | 1987-07-15 12:44:25 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-07-15 12:44:25 +0000 |
commit | 5ae100cceaf8691022e805c26d28444d839038f4 (patch) | |
tree | 5982ee982009d97da19017784d0aac5d68f052e7 /server/uloc.c | |
parent | 75f8f31640f298c9b65035c488fed8036f8852bb (diff) |
add paranoia; fix documenting comments
Diffstat (limited to 'server/uloc.c')
-rw-r--r-- | server/uloc.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/server/uloc.c b/server/uloc.c index a523e85..813bc93 100644 --- a/server/uloc.c +++ b/server/uloc.c @@ -39,8 +39,7 @@ static char rcsid_uloc_s_c[] = "$Header$"; * void uloc_hflush(addr) * struct in_addr *addr; * - * void uloc_send_locations(server, host) - * ZServerDesc_t *server; + * void uloc_send_locations(host) * ZHostList_t *host; */ @@ -268,6 +267,7 @@ ZHostList_t *host; register int i; register struct in_addr *haddr = &host->zh_addr.sin_addr; char *lyst[NUM_FIELDS]; + Code_t retval; for (i = 0, loc = locations; i < num_locs; i++, loc++) { if (loc->zlt_addr.s_addr != haddr->s_addr) @@ -279,10 +279,18 @@ ZHostList_t *host; #else lyst[1] = loc->zlt_time; #endif notdef - bdump_send_list_tcp(ACKED, bdump_sin.sin_port, LOGIN_CLASS, - loc->zlt_user, - (loc->zlt_visible == VISIBLE) ? LOGIN_USER_LOGIN : LOGIN_QUIET_LOGIN, - myname, "", lyst, NUM_FIELDS); + + if ((retval = bdump_send_list_tcp(ACKED, bdump_sin.sin_port, + LOGIN_CLASS, loc->zlt_user, + (loc->zlt_visible == VISIBLE) + ? LOGIN_USER_LOGIN + : LOGIN_QUIET_LOGIN, + myname, "", lyst, + NUM_FIELDS)) != ZERR_NONE) { + syslog(LOG_ERR, "uloc_send_locs: %s", + error_message(retval)); + return; + } } return; } |