diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-02 15:39:35 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-02-02 15:39:46 -0800 |
commit | f8da754884e5c7d4a8fe16829c771fb66b32c38b (patch) | |
tree | f0f09674b977f5c9453be80f7d540e76950e512e /src/io.cpp | |
parent | 1688b2384f5f550a0527ced1e516e6096aa64f7c (diff) |
Work around some bogus static analyzer warnings
Diffstat (limited to 'src/io.cpp')
-rw-r--r-- | src/io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -194,7 +194,7 @@ void io_print(const io_chain_t &chain) fprintf(stderr, "Chain %p (%ld items):\n", &chain, (long)chain.size()); for (size_t i=0; i < chain.size(); i++) { - const shared_ptr<const io_data_t> &io = chain.at(i); + const shared_ptr<io_data_t> &io = chain.at(i); if (io.get() == NULL) { fprintf(stderr, "\t(null)\n"); @@ -278,7 +278,7 @@ shared_ptr<const io_data_t> io_chain_t::get_io_for_fd(int fd) const size_t idx = this->size(); while (idx--) { - const shared_ptr<const io_data_t> &data = this->at(idx); + const shared_ptr<io_data_t> &data = this->at(idx); if (data->fd == fd) { return data; |