]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson: do not use auto in param list of function prototype
authorKefu Chai <kchai@redhat.com>
Sun, 5 Jan 2020 14:17:42 +0000 (22:17 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 5 Jan 2020 14:27:03 +0000 (22:27 +0800)
src/crimson/net/Socket.cc:114:57: error: 'auto' not allowed in function
prototype
static inline seastar::future<> close_and_handle_errors(auto& out) {
                                                        ^~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/Socket.cc

index 4effb94ee8e75a1936e2e3620424bd3957c73db3..86b5f6752cc08e16df31b153db0cb7dbe809f6d5 100644 (file)
@@ -111,7 +111,9 @@ void Socket::shutdown() {
   socket.shutdown_output();
 }
 
-static inline seastar::future<> close_and_handle_errors(auto& out) {
+static inline seastar::future<>
+close_and_handle_errors(seastar::output_stream<char>& out)
+{
   return out.close().handle_exception_type([] (const std::system_error& e) {
     if (e.code() != error::broken_pipe &&
         e.code() != error::connection_reset) {