ACK...

Fabio

On Tue, 2009-06-30 at 11:00 +0200, Jim Meyering wrote:
> My gnulib-added (not public yet, pending legal opinion)
> make "syntax-check" failed due to some newly-added
> trailing blanks and a useless inclusion of <signal.h>.
> With these changes, those tests now pass.
> 
> >From c69f13f86766d07106464f2951001eb686e5b5db Mon Sep 17 00:00:00 2001
> From: Jim Meyering <[email protected]>
> Date: Tue, 30 Jun 2009 10:56:37 +0200
> Subject: [PATCH corosync 1/2] remove trailing blanks
> 
> * corosync.spec.in:
> * exec/evil.c:
> * exec/main.c:
> * exec/mainconfig.c:
> * exec/syncv2.c:
> ---
>  corosync.spec.in  |    4 ++--
>  exec/evil.c       |   18 +++++++++---------
>  exec/main.c       |    2 +-
>  exec/mainconfig.c |    2 +-
>  exec/syncv2.c     |   24 ++++++++++++------------
>  5 files changed, 25 insertions(+), 25 deletions(-)
> 
> diff --git a/corosync.spec.in b/corosync.spec.in
> index f94d26e..e5977bb 100644
> --- a/corosync.spec.in
> +++ b/corosync.spec.in
> @@ -58,7 +58,7 @@ rm -rf %{buildroot}%{_docdir}/*
>  %clean
>  rm -rf %{buildroot}
> 
> -%description 
> +%description
>  This package contains the Corosync Cluster Engine Executive, several default
>  APIs and libraries, default configuration files, and an init script.
> 
> @@ -74,7 +74,7 @@ fi
>  %postun
>  [ "$1" -ge "1" ] && /sbin/service corosync condrestart &>/dev/null || :
> 
> -%files 
> +%files
>  %defattr(-,root,root,-)
>  %doc LICENSE SECURITY
>  %{_sbindir}/corosync
> diff --git a/exec/evil.c b/exec/evil.c
> index 3bd522f..1dba9c6 100644
> --- a/exec/evil.c
> +++ b/exec/evil.c
> @@ -110,7 +110,7 @@ static void deliver_fn_evt_compat (
>       unsigned int nodeid,
>       unsigned int service,
>       unsigned int fn_id,
> -     const void *msg, 
> +     const void *msg,
>       unsigned int endian_conversion_required);
> 
>  static struct sync_callbacks clm_sync_operations = {
> @@ -225,7 +225,7 @@ void evil_deliver_fn (
>       unsigned int nodeid,
>       unsigned int service,
>       unsigned int fn_id,
> -     const void *msg, 
> +     const void *msg,
>       unsigned int endian_conversion_required)
>  {
>       if (service == EVT_SERVICE) {
> @@ -233,11 +233,11 @@ void evil_deliver_fn (
>                       nodeid,
>                       service,
>                       fn_id,
> -                     msg, 
> +                     msg,
>                       endian_conversion_required);
>       }
>  }
> -     
> +
>  /*
>   * This sends the clm nodejoin message required by clm services
>   * on whitetank as well as the event service
> @@ -345,7 +345,7 @@ static int clm_hack_init (void)
>       int mib[2] = { CTL_KERN, KERN_BOOTTIME };
>       struct timeval boot_time;
>       size_t size = sizeof(boot_time);
> -     
> +
>       if ( sysctl(mib, 2, &boot_time, &size, NULL, 0) == -1 )
>               boot_time.tv_sec = time (NULL);
>        /* (currenttime (s) - uptime (s)) * 1 billion (ns) / 1 (s) */
> @@ -366,14 +366,14 @@ static int clm_nodejoin_send (void)
>       my_cluster_node_load ();
> 
>       req_exec_clm_nodejoin.header.size = sizeof (struct 
> req_exec_clm_nodejoin);
> -     req_exec_clm_nodejoin.header.id = 
> +     req_exec_clm_nodejoin.header.id =
>               SERVICE_ID_MAKE (CLM_SERVICE, MESSAGE_REQ_EXEC_CLM_NODEJOIN);
> 
>       my_cluster_node.initial_view_number = 0;
> 
>       memcpy (&req_exec_clm_nodejoin.cluster_node, &my_cluster_node,
>               sizeof (mar_clm_cluster_node_t));
> -     
> +
>       req_exec_clm_iovec.iov_base = (char *)&req_exec_clm_nodejoin;
>       req_exec_clm_iovec.iov_len = sizeof (req_exec_clm_nodejoin);
> 
> @@ -456,7 +456,7 @@ static void evt_sync_init (
>  {
>       my_member_list_entries = member_list_entries;
>       my_evt_checked_in = 0;
> -     
> +
>       evt_sync_state = EVT_SYNC_PART_ONE;
>       return;
>  }
> @@ -511,7 +511,7 @@ static void deliver_fn_evt_compat (
>       unsigned int nodeid,
>       unsigned int service,
>       unsigned int fn_id,
> -     const void *msg, 
> +     const void *msg,
>       unsigned int endian_conversion_required)
>  {
>       const struct req_evt_chan_command *cpkt = msg;
> diff --git a/exec/main.c b/exec/main.c
> index 2fd83c1..4e5fa6f 100644
> --- a/exec/main.c
> +++ b/exec/main.c
> @@ -698,7 +698,7 @@ static void corosync_setscheduler (void)
>               } else {
>                       /*
>                        * Turn on SCHED_RR in ipc system
> -                      */ 
> +                      */
>                       ipc_init_state.sched_policy = SCHED_RR;
>               }
>       } else {
> diff --git a/exec/mainconfig.c b/exec/mainconfig.c
> index 82c5631..5cc864d 100644
> --- a/exec/mainconfig.c
> +++ b/exec/mainconfig.c
> @@ -733,7 +733,7 @@ int corosync_main_config_compatibility_read (
>               if (strcmp (value, "none") == 0) {
>                       *minimum_sync_mode = CS_SYNC_V2;
>               } else {
> -                     
> +
>                       snprintf (error_string_response, sizeof 
> (error_string_response),
>                               "Invalid compatibility option '%s' specified, 
> must be none or whitetank.\n", value);
>                       goto parse_error;
> diff --git a/exec/syncv2.c b/exec/syncv2.c
> index 081b5cb..c9190ae 100644
> --- a/exec/syncv2.c
> +++ b/exec/syncv2.c
> @@ -72,7 +72,7 @@ enum sync_process_state {
>       PROCESS,
>       ACTIVATE
>  };
> -     
> +
>  enum sync_state {
>       SYNC_SERVICELIST_BUILD,
>       SYNC_PROCESS,
> @@ -317,7 +317,7 @@ static void sync_service_build_handler (unsigned int 
> nodeid, const void *msg)
>               return;
>       }
>       for (i = 0; i < req_exec_service_build_message->service_list_entries; 
> i++) {
> -     
> +
>               found = 0;
>               for (j = 0; j < my_service_list_entries; j++) {
>                       if (req_exec_service_build_message->service_list[i] ==
> @@ -327,20 +327,20 @@ static void sync_service_build_handler (unsigned int 
> nodeid, const void *msg)
>                       }
>               }
>               if (found == 0) {
> -                     my_service_list[my_service_list_entries].state = 
> +                     my_service_list[my_service_list_entries].state =
>                               INIT;
> -                     my_service_list[my_service_list_entries].service_id = 
> +                     my_service_list[my_service_list_entries].service_id =
>                               req_exec_service_build_message->service_list[i];
>                       sprintf (my_service_list[my_service_list_entries].name,
> -                             "External Service (id = %d)\n", 
> +                             "External Service (id = %d)\n",
>                               
> req_exec_service_build_message->service_list[i]);
> -                     my_service_list[my_service_list_entries].sync_init = 
> +                     my_service_list[my_service_list_entries].sync_init =
>                               dummy_sync_init;
> -                     my_service_list[my_service_list_entries].sync_abort = 
> +                     my_service_list[my_service_list_entries].sync_abort =
>                               dummy_sync_abort;
> -                     my_service_list[my_service_list_entries].sync_process = 
> +                     my_service_list[my_service_list_entries].sync_process =
>                               dummy_sync_process;
> -                     my_service_list[my_service_list_entries].sync_activate 
> = 
> +                     my_service_list[my_service_list_entries].sync_activate =
>                               dummy_sync_activate;
>                       my_service_list_entries += 1;
> 
> @@ -459,7 +459,7 @@ static void sync_process_enter (void)
>       /*
>        * No syncv2 services
>        */
> -     if (my_service_list_entries == 0) { 
> +     if (my_service_list_entries == 0) {
>               my_state = SYNC_SERVICELIST_BUILD;
>               my_memb_determine_list_entries = 0;
>               sync_synchronization_completed ();
> @@ -489,7 +489,7 @@ static void sync_servicelist_build_enter (
>       my_processor_list_entries = member_list_entries;
> 
>       my_processing_idx = 0;
> -     
> +
>       memcpy (my_service_list, my_initial_service_list,
>               sizeof (struct service_entry) *
>                       my_initial_service_list_entries);
> @@ -526,7 +526,7 @@ static int schedwrk_processor (const void *context)
>       if (my_service_list[my_processing_idx].state == ACTIVATE) {
>               my_service_list[my_processing_idx].state = ACTIVATE;
>               my_service_list[my_processing_idx].sync_activate ();
> -             log_printf (LOGSYS_LEVEL_DEBUG, "Committing synchronization for 
> %s\n", 
> +             log_printf (LOGSYS_LEVEL_DEBUG, "Committing synchronization for 
> %s\n",
>                       my_service_list[my_processing_idx].name);
>               sync_barrier_enter();
>       }
> -- 
> 1.6.3.3.467.g98a79
> 
> 
> >From 4137eeb8960eaf68b361168f9a379f5c19d18ebd Mon Sep 17 00:00:00 2001
> From: Jim Meyering <[email protected]>
> Date: Tue, 30 Jun 2009 10:57:52 +0200
> Subject: [PATCH corosync 2/2] remove unnecessary #include
> 
> * exec/evil.c: Don't include <signal.h>.
> ---
>  exec/evil.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/exec/evil.c b/exec/evil.c
> index 1dba9c6..fbe926a 100644
> --- a/exec/evil.c
> +++ b/exec/evil.c
> @@ -57,7 +57,6 @@
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <errno.h>
> -#include <signal.h>
>  #include <sched.h>
>  #include <time.h>
> 

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to