From aa473d19780f2670bb828835ee7ce970571016cf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 16:04:14 +0000 Subject: Strip trailing whitespace. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1999 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/HTTPSender.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/shared/HTTPSender.cpp') diff --git a/src/shared/HTTPSender.cpp b/src/shared/HTTPSender.cpp index e5cd80dc..6d036989 100644 --- a/src/shared/HTTPSender.cpp +++ b/src/shared/HTTPSender.cpp @@ -1,15 +1,15 @@ /* This file is part of Ingen. * Copyright (C) 2008 Dave Robillard - * + * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -59,7 +59,7 @@ HTTPSender::HTTPSender() fprintf(stderr, "Error calling bind (%s)\n", strerror(errno)); _listen_sock = -1; } - + // Find port number socklen_t length = sizeof(addr); if (getsockname(_listen_sock, (struct sockaddr*)&addr, &length) == -1) { @@ -67,7 +67,7 @@ HTTPSender::HTTPSender() _listen_sock = -1; return; } - + if (listen(_listen_sock, 1) < 0 ) { cerr << "Error calling listen: %s" << strerror(errno) << endl; _listen_sock = -1; @@ -96,7 +96,7 @@ HTTPSender::_run() cerr << "Unable to open socket, exiting sender thread" << endl; return; } - + // Accept connection if ((_client_sock = accept(_listen_sock, NULL, NULL) ) < 0) { cerr << "Error calling accept: " << strerror(errno) << endl; @@ -139,7 +139,7 @@ HTTPSender::bundle_end() _mutex.unlock(); } - + void HTTPSender::send_chunk(const std::string& buf) { -- cgit v1.2.1