[Openais] [PATCH openais 3/9] include <config.h> in files that did not

Steven Dake sdake at redhat.com
Sun Jun 21 12:44:43 PDT 2009


looks good

On Sun, 2009-06-21 at 20:42 +0200, Jim Meyering wrote:
> From: Jim Meyering <meyering at redhat.com>
> 
> * services/openais-instantiate.c: Include <config.h>.
> * test/ckpt-rd.c: Likewise.
> * test/ckpt-wr.c: Likewise.
> * test/ckptbench.c: Likewise.
> * test/ckptbenchth.c: Likewise.
> * test/ckptstress.c: Likewise.
> * test/comp_amf/takeover/serv_amf.c: Likewise.
> * test/comp_amf/takeover/serv_main.c: Likewise.
> * test/evtbench.c: Likewise.
> * test/publish.c: Likewise.
> * test/sa_error.c: Likewise.
> * test/subscription.c: Likewise.
> * test/testamf.c: Likewise.
> * test/testamf1.c: Likewise.
> * test/testamf2.c: Likewise.
> * test/testamf3.c: Likewise.
> * test/testamf4.c: Likewise.
> * test/testamf5.c: Likewise.
> * test/testamf6.c: Likewise.
> * test/testamfth.c: Likewise.
> * test/testckpt.c: Likewise.
> * test/testclm.c: Likewise.
> * test/testclm2.c: Likewise.
> * test/testevt.c: Likewise.
> * test/testlck.c: Likewise.
> * test/testlck2.c: Likewise.
> * test/testmsg.c: Likewise.
> * test/testmsg2.c: Likewise.
> * test/testmsg3.c: Likewise.
> * test/testtmr.c: Likewise.
> * test/unlink.c: Likewise.
> ---
>  services/openais-instantiate.c     |    1 +
>  test/ckpt-rd.c                     |    1 +
>  test/ckpt-wr.c                     |    1 +
>  test/ckptbench.c                   |    1 +
>  test/ckptbenchth.c                 |    1 +
>  test/ckptstress.c                  |    1 +
>  test/comp_amf/takeover/serv_amf.c  |    1 +
>  test/comp_amf/takeover/serv_main.c |    1 +
>  test/evtbench.c                    |    1 +
>  test/publish.c                     |    1 +
>  test/sa_error.c                    |    1 +
>  test/subscription.c                |    1 +
>  test/testamf.c                     |    1 +
>  test/testamf1.c                    |    1 +
>  test/testamf2.c                    |    1 +
>  test/testamf3.c                    |    1 +
>  test/testamf4.c                    |    1 +
>  test/testamf5.c                    |    1 +
>  test/testamf6.c                    |    1 +
>  test/testamfth.c                   |    1 +
>  test/testckpt.c                    |    3 ++-
>  test/testclm.c                     |    1 +
>  test/testclm2.c                    |    1 +
>  test/testevt.c                     |    1 +
>  test/testlck.c                     |    1 +
>  test/testlck2.c                    |    3 ++-
>  test/testmsg.c                     |    1 +
>  test/testmsg2.c                    |    3 ++-
>  test/testmsg3.c                    |    3 ++-
>  test/testtmr.c                     |    3 ++-
>  test/unlink.c                      |    1 +
>  31 files changed, 36 insertions(+), 5 deletions(-)
> 
> diff --git a/services/openais-instantiate.c b/services/openais-instantiate.c
> index b7d7924..da7f1b2 100644
> --- a/services/openais-instantiate.c
> +++ b/services/openais-instantiate.c
> @@ -31,6 +31,7 @@
>   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> +#include <config.h>
>  #include <stdio.h>
>  #include <sys/types.h>
>  #include <sys/wait.h>
> diff --git a/test/ckpt-rd.c b/test/ckpt-rd.c
> index d58f6ad..03e4e12 100644
> --- a/test/ckpt-rd.c
> +++ b/test/ckpt-rd.c
> @@ -33,6 +33,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/ckpt-wr.c b/test/ckpt-wr.c
> index 0d1b345..55ddfc3 100644
> --- a/test/ckpt-wr.c
> +++ b/test/ckpt-wr.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/ckptbench.c b/test/ckptbench.c
> index 955d886..b831811 100644
> --- a/test/ckptbench.c
> +++ b/test/ckptbench.c
> @@ -34,6 +34,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/ckptbenchth.c b/test/ckptbenchth.c
> index 5a5e20c..fbf81fb 100644
> --- a/test/ckptbenchth.c
> +++ b/test/ckptbenchth.c
> @@ -34,6 +34,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/ckptstress.c b/test/ckptstress.c
> index 9ff2689..106aa31 100644
> --- a/test/ckptstress.c
> +++ b/test/ckptstress.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <pthread.h>
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/test/comp_amf/takeover/serv_amf.c b/test/comp_amf/takeover/serv_amf.c
> index 8fdfc67..3ade261 100644
> --- a/test/comp_amf/takeover/serv_amf.c
> +++ b/test/comp_amf/takeover/serv_amf.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include "serv_amf.h"
> 
>  // Global variables
> diff --git a/test/comp_amf/takeover/serv_main.c b/test/comp_amf/takeover/serv_main.c
> index 8e7f70e..52bdfa5 100644
> --- a/test/comp_amf/takeover/serv_main.c
> +++ b/test/comp_amf/takeover/serv_main.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include<stdio.h>
>  #include<stdlib.h>
>  #include<unistd.h>
> diff --git a/test/evtbench.c b/test/evtbench.c
> index b85edcd..617cf28 100644
> --- a/test/evtbench.c
> +++ b/test/evtbench.c
> @@ -2,6 +2,7 @@
>   * Test program for event service
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <sys/poll.h>
> diff --git a/test/publish.c b/test/publish.c
> index 8e3062d..322974e 100644
> --- a/test/publish.c
> +++ b/test/publish.c
> @@ -2,6 +2,7 @@
>   * Test program for event service
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <sys/poll.h>
> diff --git a/test/sa_error.c b/test/sa_error.c
> index 63d23a3..3a25ce2 100644
> --- a/test/sa_error.c
> +++ b/test/sa_error.c
> @@ -1,3 +1,4 @@
> +#include <config.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <stdlib.h>
> diff --git a/test/subscription.c b/test/subscription.c
> index 2441211..f0d8f8a 100644
> --- a/test/subscription.c
> +++ b/test/subscription.c
> @@ -2,6 +2,7 @@
>   * Test program for event service subscriptions
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <unistd.h>
> diff --git a/test/testamf.c b/test/testamf.c
> index db4b3c1..79bc45b 100644
> --- a/test/testamf.c
> +++ b/test/testamf.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testamf1.c b/test/testamf1.c
> index e827864..d66af6e 100644
> --- a/test/testamf1.c
> +++ b/test/testamf1.c
> @@ -35,6 +35,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testamf2.c b/test/testamf2.c
> index cf81763..0b62b00 100644
> --- a/test/testamf2.c
> +++ b/test/testamf2.c
> @@ -33,6 +33,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testamf3.c b/test/testamf3.c
> index 054044a..d633704 100644
> --- a/test/testamf3.c
> +++ b/test/testamf3.c
> @@ -33,6 +33,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testamf4.c b/test/testamf4.c
> index 30119f0..30fe0e6 100644
> --- a/test/testamf4.c
> +++ b/test/testamf4.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testamf5.c b/test/testamf5.c
> index 5fe12fb..8a3e90b 100644
> --- a/test/testamf5.c
> +++ b/test/testamf5.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testamf6.c b/test/testamf6.c
> index a9d1eef..d8d8e31 100644
> --- a/test/testamf6.c
> +++ b/test/testamf6.c
> @@ -33,6 +33,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testamfth.c b/test/testamfth.c
> index 645b91c..2d212da 100644
> --- a/test/testamfth.c
> +++ b/test/testamfth.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <errno.h>
> diff --git a/test/testckpt.c b/test/testckpt.c
> index 45c41a0..a5b1fda 100644
> --- a/test/testckpt.c
> +++ b/test/testckpt.c
> @@ -1,7 +1,7 @@
>  #define _BSD_SOURCE
>  /*
>   * Copyright (c) 2002-2004 MontaVista Software, Inc.
> - * Copyright (c) 2006-2007 Red Hat, Inc.
> + * Copyright (c) 2006-2007, 2009 Red Hat, Inc.
>   * Copyright (c) 2006 Sun Microsystems, Inc.
>   *
>   * All rights reserved.
> @@ -35,6 +35,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testclm.c b/test/testclm.c
> index 694a68d..b923370 100644
> --- a/test/testclm.c
> +++ b/test/testclm.c
> @@ -33,6 +33,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <string.h>
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/test/testclm2.c b/test/testclm2.c
> index 797d54d..fe33392 100644
> --- a/test/testclm2.c
> +++ b/test/testclm2.c
> @@ -56,6 +56,7 @@
>   */
> 
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <signal.h>
> diff --git a/test/testevt.c b/test/testevt.c
> index 5f7145f..61ca558 100644
> --- a/test/testevt.c
> +++ b/test/testevt.c
> @@ -56,6 +56,7 @@
>   *		Test event channel unlink.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testlck.c b/test/testlck.c
> index 1884555..540d24b 100644
> --- a/test/testlck.c
> +++ b/test/testlck.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testlck2.c b/test/testlck2.c
> index 1d53110..0388979 100644
> --- a/test/testlck2.c
> +++ b/test/testlck2.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (c) 2008 Red Hat Software, Inc.
> + * Copyright (c) 2008, 2009 Red Hat Software, Inc.
>   *
>   * All rights reserved.
>   *
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testmsg.c b/test/testmsg.c
> index f3b890a..fa90714 100644
> --- a/test/testmsg.c
> +++ b/test/testmsg.c
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testmsg2.c b/test/testmsg2.c
> index 4bafb6f..e796972 100644
> --- a/test/testmsg2.c
> +++ b/test/testmsg2.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (c) 2008 Red Hat, Inc.
> + * Copyright (c) 2008, 2009 Red Hat, Inc.
>   *
>   * All rights reserved.
>   *
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testmsg3.c b/test/testmsg3.c
> index 62c29ca..fc09d05 100644
> --- a/test/testmsg3.c
> +++ b/test/testmsg3.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (c) 2008 Red Hat, Inc.
> + * Copyright (c) 2008, 2009 Red Hat, Inc.
>   *
>   * All rights reserved.
>   *
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/testtmr.c b/test/testtmr.c
> index ab59de5..1a57d94 100644
> --- a/test/testtmr.c
> +++ b/test/testtmr.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (c) 2008 Red Hat, Inc.
> + * Copyright (c) 2008, 2009 Red Hat, Inc.
>   *
>   * All rights reserved.
>   *
> @@ -32,6 +32,7 @@
>   * THE POSSIBILITY OF SUCH DAMAGE.
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> diff --git a/test/unlink.c b/test/unlink.c
> index 68e78dc..68fb398 100644
> --- a/test/unlink.c
> +++ b/test/unlink.c
> @@ -2,6 +2,7 @@
>   * Test program for event service
>   */
> 
> +#include <config.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <sys/poll.h>



More information about the Openais mailing list