aboutsummaryrefslogtreecommitdiffstats
path: root/modules/es_dev/es_dev.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-12-24 20:54:30 +0000
committerlloyd <[email protected]>2007-12-24 20:54:30 +0000
commit769e503fd8e4cf0f3072e04afffb61db5b48d777 (patch)
treeb5d5c5e88bcfa0c3790571c82cde222bec1addb3 /modules/es_dev/es_dev.cpp
parentcf2f188f4ad96abb26400e2dc62e2012826d10e7 (diff)
Qualify (some) calls to functions in the global namespace using an
explicit :: (it is unfortunate that there is no good way to detect all of such calls in an automated manner). Also use new-style casts in parts of the zlib code.
Diffstat (limited to 'modules/es_dev/es_dev.cpp')
-rw-r--r--modules/es_dev/es_dev.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/es_dev/es_dev.cpp b/modules/es_dev/es_dev.cpp
index 7a61a48af..61127388a 100644
--- a/modules/es_dev/es_dev.cpp
+++ b/modules/es_dev/es_dev.cpp
@@ -24,7 +24,7 @@ class Device_Reader
typedef int fd_type;
Device_Reader(fd_type device_fd) : fd(device_fd) {}
- ~Device_Reader() { close(fd); }
+ ~Device_Reader() { ::close(fd); }
u32bit get(byte out[], u32bit length);
static fd_type open(const std::string& pathname);
@@ -49,7 +49,7 @@ u32bit Device_Reader::get(byte out[], u32bit length)
FD_ZERO(&read_set);
FD_SET(fd, &read_set);
- struct timeval timeout;
+ struct ::timeval timeout;
timeout.tv_sec = 0;
timeout.tv_usec = READ_WAIT_MS * 1000;