mail[Wesnoth-commits] r28640 - in /trunk/src/server/jwsmtp: compat.cpp mailer.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 16, 2008 - 13:39:
Author: mordante
Date: Sat Aug 16 13:39:13 2008
New Revision: 28640

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28640&view=rev
Log:
Fix some compiler error.

Modified:
    trunk/src/server/jwsmtp/compat.cpp
    trunk/src/server/jwsmtp/mailer.cpp

Modified: trunk/src/server/jwsmtp/compat.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/jwsmtp/compat.cpp?rev=28640&r1=28639&r2=28640&view=diff
==============================================================================
--- trunk/src/server/jwsmtp/compat.cpp (original)
+++ trunk/src/server/jwsmtp/compat.cpp Sat Aug 16 13:39:13 2008
@@ -36,7 +36,7 @@
 #endif
 }
 
-bool Socket(SOCKET& s, int domain, int type, int protocol) {
+bool Socket(SOCKET& s, int /*domain*/, int type, int protocol) {
    s = socket(AF_INET, type, protocol);
 #ifdef WIN32
    return bool(s != INVALID_SOCKET);

Modified: trunk/src/server/jwsmtp/mailer.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/jwsmtp/mailer.cpp?rev=28640&r1=28639&r2=28640&view=diff
==============================================================================
--- trunk/src/server/jwsmtp/mailer.cpp (original)
+++ trunk/src/server/jwsmtp/mailer.cpp Sat Aug 16 13:39:13 2008
@@ -730,7 +730,7 @@
    time_t t;
    time(&t);
    char timestring[128] = "";
-   char * timeformat = "Date: %d %b %y %H:%M:%S %Z";
+   const char * timeformat = "Date: %d %b %y %H:%M:%S %Z";
    if(strftime(timestring, 127, timeformat, localtime(&t))) { // got the date
       headerline = timestring;
       headerline += "\r\n";
@@ -1115,7 +1115,7 @@
 }
 
 // we assume the array 'dns' must be 512 bytes in size!
-bool mailer::parseRR(int& pos, const unsigned char dns[], std::string& name, 
in_addr& address) {
+bool mailer::parseRR(int& pos, const unsigned char dns[], std::string& name, 
in_addr& /*address*/) {
    if(pos < 12) // didn,t get more than a header.
       return false;
    if(pos > 512) // oops.




Related Messages


Powered by MHonArc, Updated Sat Aug 16 13:41:08 2008