Changeset 18
- Timestamp:
- 10/15/08 23:15:14 (4 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
avango-core/include/avango/NetID.h (modified) (1 diff)
-
avango-core/src/avango/streams/OutputStream.cpp (modified) (3 diffs)
-
avango-core/src/avango/types/UUID.cpp (modified) (4 diffs)
-
avango-daemon/src/avango/daemon/HIDInput.cpp (modified) (2 diffs)
-
avango-daemon/src/avango/daemon/StationBlock.cpp (modified) (2 diffs)
-
avango-daemon/src/avango/daemon/dtrack/dtrack.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-core/include/avango/NetID.h
r1 r18 27 27 #define AVANGO_NETID_H 28 28 29 #include <string> 29 30 #include <iosfwd> 30 31 #include <tr1/unordered_set> -
trunk/avango-core/src/avango/streams/OutputStream.cpp
r1 r18 25 25 26 26 #include <avango/OutputStream.h> 27 #include <cstring> 28 27 29 28 30 av::OutputStream::OutputStream() : … … 190 192 if (os.isBinaryEnabled()) { 191 193 if (value.c_str()) { 192 int length = st rlen(value.c_str());194 int length = std::strlen(value.c_str()); 193 195 os.write((char*) &length, sizeof(length)); 194 196 os.write(value.c_str(), length); … … 200 202 (std::ostream&)os << '"'; 201 203 if (value.c_str()) 202 os.write(value.c_str(), st rlen(value.c_str()));204 os.write(value.c_str(), std::strlen(value.c_str())); 203 205 (std::ostream&)os << '"'; 204 206 } -
trunk/avango-core/src/avango/types/UUID.cpp
r1 r18 139 139 #include <avango/Config.h> 140 140 141 #include <cstring> 142 141 143 namespace 142 144 { … … 261 263 } 262 264 263 (void) memcpy (&mId, &new_uuid.bits, sizeof (mId));265 (void) std::memcpy (&mId, &new_uuid.bits, sizeof (mId)); 264 266 265 267 if (!valid ()) … … 285 287 mId (av::UUID::nil.mId) 286 288 { 287 (void) memcpy (&mId, &a.bits, sizeof (mId));289 (void) std::memcpy (&mId, &a.bits, sizeof (mId)); 288 290 289 291 if (!valid ()) { … … 343 345 UUID::RawType result; 344 346 345 (void) memcpy (&result.bits, &mId, sizeof (result.bits));347 (void) std::memcpy (&result.bits, &mId, sizeof (result.bits)); 346 348 347 349 return result; -
trunk/avango-daemon/src/avango/daemon/HIDInput.cpp
r1 r18 25 25 26 26 #include <cerrno> 27 #include <cstring> 27 28 #include <fcntl.h> 28 29 #include <sstream> … … 606 607 607 608 for (ns = mStations.begin(); ns != mStations.end(); ++ns) { 608 if (0 == st rcmp((*ns).second->getName(),station.c_str())) {609 if (0 == std::strcmp((*ns).second->getName(),station.c_str())) { 609 610 station_id = (*ns).first; 610 611 break; -
trunk/avango-daemon/src/avango/daemon/StationBlock.cpp
r1 r18 27 27 28 28 #include <avango/Logger.h> 29 29 #include <cstring> 30 30 31 31 namespace … … 54 54 for (i=0; i<mNumStations; i++) 55 55 { 56 if (st rcmp(name, mStations[i].getName()) == 0)56 if (std::strcmp(name, mStations[i].getName()) == 0) 57 57 { 58 58 station = &mStations[i]; -
trunk/avango-daemon/src/avango/daemon/dtrack/dtrack.cpp
r1 r18 36 36 #include <stdlib.h> 37 37 #include <stdio.h> 38 #include < string.h>38 #include <cstring> 39 39 40 40 #ifdef OS_UNIX … … 442 442 // send udp packet: 443 443 444 if(udp_send(_udpsock, cmdstr, st rlen(cmdstr) + 1, _remote_ip, _remote_port, _udptimeout_us)){444 if(udp_send(_udpsock, cmdstr, std::strlen(cmdstr) + 1, _remote_ip, _remote_port, _udptimeout_us)){ 445 445 return DTRACK_ERR_CMD; 446 446 }
Note: See TracChangeset
for help on using the changeset viewer.
