Re: [PATCH] Fix preprocessor indentation in nodeinfo.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 06/20/2011 04:40 PM, Matthias Bolte Write:
> ---
> 
> I'm pushing this under the build breaker rule.
> 
>  src/nodeinfo.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/src/nodeinfo.c b/src/nodeinfo.c
> index c6dbb84..9e0f906 100644
> --- a/src/nodeinfo.c
> +++ b/src/nodeinfo.c
> @@ -685,23 +685,23 @@ int nodeGetMemoryStats(virConnectPtr conn ATTRIBUTE_UNUSED,
>                  return -1;
>              }
>          } else {
> -#if HAVE_NUMACTL
> +# if HAVE_NUMACTL

I am surprised that this breaks building.

I use gcc-4.4.4, and building is OK.

Which tool do you use to build?

>              if (numa_available() < 0) {
> -#endif
> +# endif
>                  nodeReportError(VIR_ERR_NO_SUPPORT,
>                                  "%s", _("NUMA not supported on this host"));
>                  return -1;
> -#if HAVE_NUMACTL
> +# if HAVE_NUMACTL
>              }
> -#endif
> +# endif
>  
> -#if HAVE_NUMACTL
> +# if HAVE_NUMACTL
>              if (cellNum > numa_max_node()) {
>                  nodeReportError(VIR_ERR_INVALID_ARG, "%s",
>                                  _("Invalid cell number"));
>                  return -1;
>              }
> -#endif
> +# endif
>  
>              if (virAsprintf(&meminfo_path, "%s/node%d/meminfo",
>                              NODE_SYS_PATH, cellNum) < 0) {

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]