List:Commits« Previous MessageNext Message »
From:jon Date:July 5 2006 6:31am
Subject:svn commit - mysqldoc@docsrva: r2633 - trunk/ndbapi
View as plain text  
Author: jstephens
Date: 2006-07-05 08:31:58 +0200 (Wed, 05 Jul 2006)
New Revision: 2633

Log:
Misc. minor fixes

4-space indents -> 2-space indents in example code

Reformat

Modified:
   trunk/ndbapi/getting-started.xml

Modified: trunk/ndbapi/getting-started.xml
===================================================================
--- trunk/ndbapi/getting-started.xml	2006-07-05 06:24:59 UTC (rev 2632)
+++ trunk/ndbapi/getting-started.xml	2006-07-05 06:31:58 UTC (rev 2633)
@@ -316,8 +316,8 @@
 AC_DEFUN([WITH_MYSQL], [ 
   AC_MSG_CHECKING(for mysql_config executable)
 
-  AC_ARG_WITH(mysql, [  --with-mysql=PATH	path to mysql_config binary or mysql prefix dir], [
-	if test -x $withval -a -f $withval
+  AC_ARG_WITH(mysql, [  --with-mysql=PATH path to mysql_config binary or mysql prefix dir], [
+  if test -x $withval -a -f $withval
     then
       MYSQL_CONFIG=$withval
     elif test -x $withval/bin/mysql_config -a -f $withval/bin/mysql_config
@@ -325,7 +325,7 @@
      MYSQL_CONFIG=$withval/bin/mysql_config
     fi
   ], [
-	if test -x /usr/local/mysql/bin/mysql_config -a -f /usr/local/mysql/bin/mysql_config
+  if test -x /usr/local/mysql/bin/mysql_config -a -f /usr/local/mysql/bin/mysql_config
     then
       MYSQL_CONFIG=/usr/local/mysql/bin/mysql_config
     elif test -x /usr/bin/mysql_config -a -f /usr/bin/mysql_config
@@ -501,55 +501,55 @@
 
 Ndb_cluster_connection* example_init()
 {
-    Ndb_cluster_connection* conn;
+  Ndb_cluster_connection* conn;
 
-    // initialise MySQL and Ndb client libraries
-    if( ndb_init() )
-    {
-        exit(EXIT_FAILURE);
-    }
+  // initialise MySQL and Ndb client libraries
+  if( ndb_init() )
+  {
+    exit(EXIT_FAILURE);
+  }
 
-    // prepare connection to cluster
-    conn = new Ndb_cluster_connection(CONNECTSTR);
+  // prepare connection to cluster
+  conn = new Ndb_cluster_connection(CONNECTSTR);
 
-    // initiate connection
-    if( conn->connect(4, 5, 1) )
-    {
-        fprintf(stderr, "Unable to connect to cluster within 30 seconds.");
-        exit(EXIT_FAILURE);
-    }
-    
-    // wait for data (ndbd) nodes
-    if(conn->wait_until_ready(30, 0) < 0)
-    {
-        fprintf(stderr, "Cluster was not ready within 30 seconds.\n");
-        exit(EXIT_FAILURE);
-    }
+  // initiate connection
+  if( conn->connect(4, 5, 1) )
+  {
+    fprintf(stderr, "Unable to connect to cluster within 30 seconds.");
+    exit(EXIT_FAILURE);
+  }
+  
+  // wait for data (ndbd) nodes
+  if(conn->wait_until_ready(30, 0) < 0)
+  {
+    fprintf(stderr, "Cluster was not ready within 30 seconds.\n");
+    exit(EXIT_FAILURE);
+  }
 
-    return conn; 
+  return conn; 
 }
 
 void example_end(Ndb_cluster_connection conn)
 {
-    // terminate connection
-    delete conn;
+  // terminate connection
+  delete conn;
 
-    // shut down MySQL and Ndb client libraries
-    ndb_end(2);
+  // shut down MySQL and Ndb client libraries
+  ndb_end(2);
 }
 
 
 int main(int argc, char** argv)
 {
-    Ndb_cluster_connection* conn;
+  Ndb_cluster_connection* conn;
 
-    conn = example_connect();
+  conn = example_connect();
 
-    printf("Connection established.");
+  printf("Connection established.");
 
-    example_end(conn);
+  example_end(conn);
 
-    return EXIT_SUCCESS;
+  return EXIT_SUCCESS;
 }
 </programlisting>
         </para>
@@ -775,7 +775,7 @@
                   <para>
                     256 bytes, if
                     <literal><replaceable>size</replaceable> &lt;=
-                      256</literal> 
+                    256</literal>
                   </para>
                 </listitem>
 

Thread
svn commit - mysqldoc@docsrva: r2633 - trunk/ndbapijon5 Jul