Changeset 8446

Show
Ignore:
Timestamp:
2006-08-26 10:42:23 (2 years ago)
Author:
luks
Message:

Some fixes from the Debian package.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libofa/trunk/examples/protocol.cpp

    r7510 r8446  
    259259    // printf("response: %s\n\n", response.c_str()); 
    260260 
    261     unsigned int q = response.find("<?xml"); 
     261    string::size_type q = response.find("<?xml"); 
    262262    if (q != string::npos) { 
    263263        response = response.substr(q); 
  • libofa/trunk/examples/wavefile.cpp

    r7510 r8446  
    4343    int channels = 0; 
    4444 
    45     int fd = open(file, O_RDONLY | 0x8000); 
     45#ifdef WIN32 
     46    int fd = open(file, O_RDONLY | 0x8000); // Why not O_BINARY? 
     47#else 
     48    int fd = open(file, O_RDONLY); 
     49#endif 
    4650    if (fd == -1) 
    4751    return 0;