List:Commits« Previous MessageNext Message »
From:jack andrews Date:October 8 2009 10:21am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (jack:3096) Bug#45447
View as plain text  
#At file:///D:/repo/warn-env/ based on revid:jack@asus-20091008092953-q708k20ztt4ojymm

 3096 jack andrews	2009-10-08
      fix warnings after push of bug #45447

    modified:
      storage/ndb/src/cw/cpcd/Process.cpp
=== modified file 'storage/ndb/src/cw/cpcd/Process.cpp'
--- a/storage/ndb/src/cw/cpcd/Process.cpp	2009-10-08 04:35:04 +0000
+++ b/storage/ndb/src/cw/cpcd/Process.cpp	2009-10-08 10:21:00 +0000
@@ -256,31 +256,6 @@ setup_environment(const char *env) {
   }
 }
 
-static void
-save_environment(const char *env, Vector<BaseString> &saved) {
-  char **ptr;
-
-  ptr = BaseString::argify("", env);
-  if(!ptr) {
-    logger.error("Could not argify new environment");
-    return;
-  }
-
-  for(int i = 0; ptr[i] != NULL; i++) {
-    if(!ptr[i][0]) {
-      continue;
-    }
-    char *str1 = strdup(ptr[i]);
-    char *str2;
-    BaseString bs;
-
-    *strchr(str1, '=') = 0;
-    str2 = getenv(str1);
-    bs.assfmt("%s=%s", str1, str2 ? str2 : "");
-    saved.push_back(bs);
-  }
-}
-
 static
 int
 set_ulimit(const BaseString & pair){
@@ -330,6 +305,31 @@ set_ulimit(const BaseString & pair){
 
 #ifdef _WIN32
 const int S_IRUSR = _S_IREAD, S_IWUSR = _S_IWRITE;
+
+static void
+save_environment(const char *env, Vector<BaseString> &saved) {
+  char **ptr;
+
+  ptr = BaseString::argify("", env);
+  if(!ptr) {
+    logger.error("Could not argify new environment");
+    return;
+  }
+
+  for(int i = 0; ptr[i] != NULL; i++) {
+    if(!ptr[i][0]) {
+      continue;
+    }
+    char *str1 = strdup(ptr[i]);
+    char *str2;
+    BaseString bs;
+
+    *strchr(str1, '=') = 0;
+    str2 = getenv(str1);
+    bs.assfmt("%s=%s", str1, str2 ? str2 : "");
+    saved.push_back(bs);
+  }
+}
 #endif
 
 void


Attachment: [text/bzr-bundle] bzr/jack@sun.com-20091008102100-as95up73swo090as.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (jack:3096) Bug#45447jack andrews8 Oct