public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: fabbione@sourceware.org
To: cluster-cvs@sources.redhat.com, cluster-devel@redhat.com
Subject: Cluster Project branch, master, updated. cluster-2.99.06-23-g8ff7d32
Date: Thu, 17 Jul 2008 13:29:00 -0000	[thread overview]
Message-ID: <20080717132952.9167.qmail@sourceware.org> (raw)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=8ff7d32e3a8bfc9d27aa96c733d1011ddf7969ed

The branch, master has been updated
       via  8ff7d32e3a8bfc9d27aa96c733d1011ddf7969ed (commit)
      from  9bf768bfbce13a7a5fa9413d4e353a85c0358c88 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8ff7d32e3a8bfc9d27aa96c733d1011ddf7969ed
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
Date:   Thu Jul 17 15:29:07 2008 +0200

    [CCS] Inflict hopefully last compat issues love to ccs_t*
    
    Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 ccs/ccs_tool/ccs_tool.c |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/ccs/ccs_tool/ccs_tool.c b/ccs/ccs_tool/ccs_tool.c
index b73a546..9963f0d 100644
--- a/ccs/ccs_tool/ccs_tool.c
+++ b/ccs/ccs_tool/ccs_tool.c
@@ -90,20 +90,26 @@ static int test_main(int argc, char *argv[], int old_format){
     } else {
       printf("Connect successful.\n");
       printf(" Connection descriptor = %d\n", desc);
+#ifndef LEGACY_CODE
       ccs_disconnect(desc);
+#endif
     }
   }
-  else if(!strcmp(argv[1], "ccs_disconnect")){
+  else if(!strcmp(argv[1], "disconnect")){
     if(argc < 3){
       fprintf(stderr, "Wrong number of arguments.\n");
       exit(EXIT_FAILURE);
     }
+#ifdef LEGACY_CODE
+    desc = atoi(argv[2]);
+#else
     desc = ccs_connect();
+#endif
     if((error = ccs_disconnect(desc))){
-      fprintf(stderr, "ccs_ccs_disconnect failed: %s\n", errstring(-error));
+      fprintf(stderr, "ccs_disconnect failed: %s\n", errstring(-error));
       exit(EXIT_FAILURE);
     } else {
-      printf("Ccs_Disconnect successful.\n");
+      printf("Disconnect successful.\n");
     }
   }
   else if(!strcmp(argv[1], "get")){
@@ -111,7 +117,11 @@ static int test_main(int argc, char *argv[], int old_format){
       fprintf(stderr, "Wrong number of arguments.\n");
       exit(EXIT_FAILURE);
     }
+#ifdef LEGACY_CODE
+    desc = atoi(argv[2]);
+#else
     desc = ccs_connect();
+#endif
     if((desc < 0) || (error = ccs_get(desc, argv[3], &str))){
       fprintf(stderr, "ccs_get failed: %s\n", errstring(-error));
       exit(EXIT_FAILURE);
@@ -124,7 +134,9 @@ static int test_main(int argc, char *argv[], int old_format){
 		    printf("%s\n", str);
 	    }
       if(str)free(str);
+#ifndef LEGACY_CODE
       ccs_disconnect(desc);
+#endif
     }
   }
   else {
@@ -148,7 +160,7 @@ static void test_print_usage(FILE *stream)
 	  "\n"
 	  "Commands:\n"
 	  "  connect <force> <block>   Connect to CCS and return connection descriptor.\n"
-	  "  ccs_disconnect <desc>     Disconnect from CCS.\n"
+	  "  disconnect <desc>         Disconnect from CCS.\n"
 	  "  get <desc> <request>      Get a value from CCS.\n"
 	  );
 }


hooks/post-receive
--
Cluster Project


                 reply	other threads:[~2008-07-17 13:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080717132952.9167.qmail@sourceware.org \
    --to=fabbione@sourceware.org \
    --cc=cluster-cvs@sources.redhat.com \
    --cc=cluster-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).