From c4bb92ca30a9dbda38a8cf94019c7ba45c891088 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 24 Jun 2003 00:33:59 +0000 Subject: [PATCH] removed stderr fprintfs svn path=/trunk/boinc/; revision=1574 --- checkin_notes | 8 ++++++++ client/http.C | 24 ++++++++++++------------ client/main.C | 16 ++++++++-------- client/net_xfer.C | 22 +++++++++++----------- 4 files changed, 39 insertions(+), 31 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9f602108ff..82490b4abe 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5013,3 +5013,11 @@ Karl 2003/06/23 filesys.h util.C util.h + +Karl 2003/06/23 + - removed stderr messages on detach_project() after user adds a URL that + doesn't work + + client/ + http.C + net_xfer.C diff --git a/client/http.C b/client/http.C index 3f402c2d8b..3fa67d6798 100644 --- a/client/http.C +++ b/client/http.C @@ -1,19 +1,19 @@ // The contents of this file are subject to the Mozilla Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at -// http://www.mozilla.org/MPL/ -// +// http://www.mozilla.org/MPL/ +// // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations -// under the License. -// -// The Original Code is the Berkeley Open Infrastructure for Network Computing. -// +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// // The Initial Developer of the Original Code is the SETI@home project. -// Portions created by the SETI@home project are Copyright (C) 2002 -// University of California at Berkeley. All Rights Reserved. -// +// Portions created by the SETI@home project are Copyright (C) 2002, 2003 +// University of California at Berkeley. All Rights Reserved. +// // Contributor(s): // @@ -218,7 +218,7 @@ int HTTP_OP::init_head(char* url) { // int HTTP_OP::init_get(char* url, char* out, bool del_old_file, double off) { char proxy_buf[256]; - + if (del_old_file) { unlink(out); } @@ -473,7 +473,7 @@ bool HTTP_OP_SET::poll() { // fall through case HTTP_OP_GET: htp->http_op_state = HTTP_STATE_REPLY_BODY; - + htp->file = fopen(htp->outfile, "ab"); if (!htp->file) { fprintf(stderr, @@ -539,6 +539,6 @@ int HTTP_OP_SET::remove(HTTP_OP* p) { } iter++; } - fprintf(stdout, "HTTP_OP_SET::remove(): not found\n"); + // fprintf(stdout, "HTTP_OP_SET::remove(): not found\n"); return 1; } diff --git a/client/main.C b/client/main.C index 570a8291c3..03f8baade8 100644 --- a/client/main.C +++ b/client/main.C @@ -1,19 +1,19 @@ // The contents of this file are subject to the Mozilla Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at -// http://www.mozilla.org/MPL/ -// +// http://www.mozilla.org/MPL/ +// // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations -// under the License. -// -// The Original Code is the Berkeley Open Infrastructure for Network Computing. -// +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// // The Initial Developer of the Original Code is the SETI@home project. // Portions created by the SETI@home project are Copyright (C) 2002 -// University of California at Berkeley. All Rights Reserved. -// +// University of California at Berkeley. All Rights Reserved. +// // Contributor(s): // diff --git a/client/net_xfer.C b/client/net_xfer.C index 9181283ae9..66c716a3b5 100644 --- a/client/net_xfer.C +++ b/client/net_xfer.C @@ -1,19 +1,19 @@ // The contents of this file are subject to the Mozilla Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at -// http://www.mozilla.org/MPL/ -// +// http://www.mozilla.org/MPL/ +// // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations -// under the License. -// -// The Original Code is the Berkeley Open Infrastructure for Network Computing. -// +// under the License. +// +// The Original Code is the Berkeley Open Infrastructure for Network Computing. +// // The Initial Developer of the Original Code is the SETI@home project. -// Portions created by the SETI@home project are Copyright (C) 2002 -// University of California at Berkeley. All Rights Reserved. -// +// Portions created by the SETI@home project are Copyright (C) 2002, 2003 +// University of California at Berkeley. All Rights Reserved. +// // Contributor(s): // @@ -272,7 +272,7 @@ int NET_XFER_SET::remove(NET_XFER* nxp) { } iter++; } - fprintf(stdout, "NET_XFER_SET::remove(): not found\n"); + // fprintf(stdout, "NET_XFER_SET::remove(): not found\n"); return 1; } @@ -320,7 +320,7 @@ int NET_XFER_SET::net_sleep(double x) { // do a select with the given timeout, // then do I/O on as many sockets as possible, subject to rate limits // Transfer at most one block per socket. -// +// int NET_XFER_SET::do_select(double& bytes_transferred, timeval& timeout) { int n, fd, retval; socklen_t i;