Revert "Use given connections id in connection_disappeared()."
commitbda58a124af2293a462734acdc88e1a655966dfe
authorKalle Olavi Niemitalo <kon@iki.fi>
Sat, 4 Oct 2008 10:00:57 +0000 (4 13:00 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sat, 4 Oct 2008 10:00:57 +0000 (4 13:00 +0300)
treed15db98572e0ab4cddfe9818ba0eb9611e7f0c89
parent22975bb0ecde74efe1d59ed7dd0ddd6cd4e4aa42
Revert "Use given connections id in connection_disappeared()."

This reverts src/{network,sched}/connection.c CVS revision 1.43,
which was made on 2003-07-03 and converted to Git commit
cae65f7941628109b51ffb2e2d05882fbbdc73ef in elinks-history.

It is pointless to check whether (c == d && c->id == d->id).
If c == d, then surely c->id == d->id, and I wouldn't be surprised
to see a compiler optimize that out.
Whereas, by taking the id as a parameter, connection_disappeared()
can check whether the pointer now points to a new struct connection
with a different id.
src/network/connection.c