Skip to content

Commit

Permalink
All output goes through symbols defined in util.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Rarick committed Nov 26, 2007
1 parent e87c01d commit 064e226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ make_conn(int fd, char start_state)
conn c;

c = conn_alloc();
if (!c) return warn("OOM"), NULL;
if (!c) return twarn("OOM"), NULL;

c->fd = fd;
c->state = start_state;
Expand Down
2 changes: 1 addition & 1 deletion prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ check_err(conn c, const char *s)
if (errno == EINTR) return;
if (errno == EWOULDBLOCK) return;

warn("%s:%d in %s: %s", __FILE__, __LINE__, __func__, s);
twarn("%s", s);
conn_close(c);
return;
}
Expand Down

0 comments on commit 064e226

Please sign in to comment.