Changeset 18


Ignore:
Timestamp:
10/15/08 23:15:14 (4 years ago)
Author:
jwind
Message:

Made files compile on gcc 4.3.2 (Ubuntu 8.10).
gcc 4.3 seems to be more picky than before.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-core/include/avango/NetID.h

    r1 r18  
    2727#define AVANGO_NETID_H 
    2828 
     29#include <string> 
    2930#include <iosfwd> 
    3031#include <tr1/unordered_set> 
  • trunk/avango-core/src/avango/streams/OutputStream.cpp

    r1 r18  
    2525 
    2626#include <avango/OutputStream.h> 
     27#include <cstring> 
     28 
    2729 
    2830av::OutputStream::OutputStream() : 
     
    190192  if (os.isBinaryEnabled()) { 
    191193    if (value.c_str()) { 
    192       int length = strlen(value.c_str()); 
     194      int length = std::strlen(value.c_str()); 
    193195      os.write((char*) &length, sizeof(length)); 
    194196      os.write(value.c_str(), length); 
     
    200202    (std::ostream&)os << '"'; 
    201203    if (value.c_str()) 
    202       os.write(value.c_str(), strlen(value.c_str())); 
     204      os.write(value.c_str(), std::strlen(value.c_str())); 
    203205    (std::ostream&)os << '"'; 
    204206  } 
  • trunk/avango-core/src/avango/types/UUID.cpp

    r1 r18  
    139139#include <avango/Config.h> 
    140140 
     141#include <cstring> 
     142 
    141143namespace 
    142144{ 
     
    261263  } 
    262264 
    263   (void) memcpy (&mId, &new_uuid.bits, sizeof (mId)); 
     265  (void) std::memcpy (&mId, &new_uuid.bits, sizeof (mId)); 
    264266 
    265267  if (!valid ()) 
     
    285287  mId (av::UUID::nil.mId) 
    286288{ 
    287   (void) memcpy (&mId, &a.bits, sizeof (mId)); 
     289  (void) std::memcpy (&mId, &a.bits, sizeof (mId)); 
    288290 
    289291  if (!valid ()) { 
     
    343345  UUID::RawType result; 
    344346 
    345   (void) memcpy (&result.bits, &mId, sizeof (result.bits)); 
     347  (void) std::memcpy (&result.bits, &mId, sizeof (result.bits)); 
    346348 
    347349  return result; 
  • trunk/avango-daemon/src/avango/daemon/HIDInput.cpp

    r1 r18  
    2525 
    2626#include <cerrno> 
     27#include <cstring> 
    2728#include <fcntl.h> 
    2829#include <sstream> 
     
    606607 
    607608      for (ns = mStations.begin(); ns != mStations.end(); ++ns) { 
    608         if (0 == strcmp((*ns).second->getName(),station.c_str())) { 
     609        if (0 == std::strcmp((*ns).second->getName(),station.c_str())) { 
    609610          station_id = (*ns).first; 
    610611          break; 
  • trunk/avango-daemon/src/avango/daemon/StationBlock.cpp

    r1 r18  
    2727 
    2828#include <avango/Logger.h> 
    29  
     29#include <cstring> 
    3030 
    3131namespace 
     
    5454  for (i=0; i<mNumStations; i++) 
    5555  { 
    56     if (strcmp(name, mStations[i].getName()) == 0) 
     56    if (std::strcmp(name, mStations[i].getName()) == 0) 
    5757    { 
    5858      station = &mStations[i]; 
  • trunk/avango-daemon/src/avango/daemon/dtrack/dtrack.cpp

    r1 r18  
    3636#include <stdlib.h> 
    3737#include <stdio.h> 
    38 #include <string.h> 
     38#include <cstring> 
    3939 
    4040#ifdef OS_UNIX 
     
    442442        // send udp packet: 
    443443 
    444         if(udp_send(_udpsock, cmdstr, strlen(cmdstr) + 1, _remote_ip, _remote_port, _udptimeout_us)){ 
     444        if(udp_send(_udpsock, cmdstr, std::strlen(cmdstr) + 1, _remote_ip, _remote_port, _udptimeout_us)){ 
    445445                return DTRACK_ERR_CMD; 
    446446        } 
Note: See TracChangeset for help on using the changeset viewer.