summaryrefslogtreecommitdiff
path: root/ndb/src/cw
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-10-23 09:05:24 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-10-23 09:05:24 +0000
commit5ae770339bed516b7df64c265cd92e372a8bd6b5 (patch)
treeab3dbd8044d8da94419ee4925491e536a12d5d47 /ndb/src/cw
parent1cbad77b8e113f01f9353a53fbe789338fdd6f33 (diff)
downloadmariadb-git-5ae770339bed516b7df64c265cd92e372a8bd6b5.tar.gz
remove compiler warnings
Diffstat (limited to 'ndb/src/cw')
-rw-r--r--ndb/src/cw/cpcd/Process.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/cw/cpcd/Process.cpp b/ndb/src/cw/cpcd/Process.cpp
index 2d3973d1aba..2509f34e882 100644
--- a/ndb/src/cw/cpcd/Process.cpp
+++ b/ndb/src/cw/cpcd/Process.cpp
@@ -237,6 +237,7 @@ set_ulimit(const BaseString & pair){
} else if(list[0] == "t"){
_RLIMIT_FIX(RLIMIT_CPU);
} else {
+ res= -11;
errno = EINVAL;
}
if(res){
@@ -313,7 +314,7 @@ CPCD::Process::do_exec() {
}
/* Close all filedescriptors */
- for(i = STDERR_FILENO+1; i < getdtablesize(); i++)
+ for(i = STDERR_FILENO+1; (int)i < getdtablesize(); i++)
close(i);
execv(m_path.c_str(), argv);