(file) Return to SocketzOS_inline.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SocketzOS_inline.h between version 1.3 and 1.3.2.1

version 1.3, 2004/10/17 20:39:17 version 1.3.2.1, 2005/01/21 13:00:47
Line 35 
Line 35 
  
 // this inline method is needed as zOS does not support an ASCII enabled version // this inline method is needed as zOS does not support an ASCII enabled version
 // of inet_addr() at the current time (16th Sep. 2003) // of inet_addr() at the current time (16th Sep. 2003)
 inline in_addr_t inet_addr_ebcdic(char * ip_inptr)  inline in_addr_t inet_addr_ebcdic(const char * ip_inptr)
 { {
     int array_size = 0;  
     in_addr_t return_addr;     in_addr_t return_addr;
     while (ip_inptr[array_size] != 0) array_size++;          char* ip_ptr2 = strdup(ip_inptr);
     char * ip_ptr2 = (char *)malloc(array_size);      __atoe(ip_ptr2);
     memcpy(ip_ptr2,ip_inptr,array_size);  
     __atoe_l(ip_ptr2,array_size);  
     return_addr = inet_addr(ip_ptr2);     return_addr = inet_addr(ip_ptr2);
     free(ip_ptr2);     free(ip_ptr2);
     return return_addr;     return return_addr;


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2