From: hno <> Date: Thu, 21 Sep 2006 04:15:00 +0000 (+0000) Subject: Clean up cbdataReference() use to comply with the API and make GCC happy X-Git-Tag: SQUID_3_0_PRE5~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7c6641358bf05e32abcf3b84b680ebeb5ea3da8;p=thirdparty%2Fsquid.git Clean up cbdataReference() use to comply with the API and make GCC happy --- diff --git a/src/comm.cc b/src/comm.cc index 8bcda5a5b6..c6eb764d7f 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.424 2006/09/19 07:56:57 adrian Exp $ + * $Id: comm.cc,v 1.425 2006/09/20 22:15:00 hno Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -117,10 +117,7 @@ commio_set_callback(int fd, iocb_type type, comm_io_callback_t *ccb, IOCB *cb, v assert(ccb->type == type); ccb->fd = fd; ccb->callback = cb; - ccb->callback_data = cbdata; - if (cbdata) { - cbdataReference(cbdata); - } + ccb->callback_data = cbdataReference(cbdata); ccb->buf = buf; ccb->freefunc = freefunc; ccb->size = size;