--- parser3/src/classes/smtp/Attic/comms.C 2002/02/08 08:30:11 1.8 +++ parser3/src/classes/smtp/Attic/comms.C 2003/11/20 15:35:30 1.13 @@ -1,18 +1,18 @@ /** @file Parser: SMTP sender impl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: comms.C,v 1.8 2002/02/08 08:30:11 paf Exp $ */ +static const char* IDENT_COMMS_C="$Date: 2003/11/20 15:35:30 $"; + #include "smtp.h" #include // --------------------------------------------------------------------------- int SMTP:: -IsAddressARawIpaddress(const char * string) +IsAddressARawIpaddress(const char* string) { while( *string ) { @@ -27,7 +27,7 @@ IsAddressARawIpaddress(const char * stri //--------------------------------------------------------------------------- int SMTP:: -ResolveService(const char* service, int *our_port) +ResolveService(const char* service, u_short *our_port) { struct servent FAR *serventry = NULL; int retval = 0; @@ -36,7 +36,7 @@ ResolveService(const char* service, int { char * tail; - *our_port = (int)strtol(service, &tail, 10); + *our_port = (u_short)strtol(service, &tail, 10); if( tail == service ) {