All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] gfs2-utils: Fix build warnings in Fedora 18
@ 2012-12-14 22:30 Callum Massey
  2012-12-17 11:09 ` Andrew Price
  0 siblings, 1 reply; 2+ messages in thread
From: Callum Massey @ 2012-12-14 22:30 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Dropped the * from gzFile *gzin_fd because gzFile is no longer defined
as a void pointer.

Rearranged incldes in libgfs2/lang.c so parser.h gets passed struct
lgfs2_lang_state correctly.

Signed-off-by: Callum Massey <kais58@sucs.org>
---
 gfs2/edit/savemeta.c | 2 +-
 gfs2/libgfs2/lang.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gfs2/edit/savemeta.c b/gfs2/edit/savemeta.c
index f35c35d..cfe18eb 100644
--- a/gfs2/edit/savemeta.c
+++ b/gfs2/edit/savemeta.c
@@ -831,7 +831,7 @@ void savemeta(char *out_fn, int saveoption, int gziplevel)
 	exit(0);
 }
 
-static int restore_data(int fd, gzFile *gzin_fd, int printblocksonly,
+static int restore_data(int fd, gzFile gzin_fd, int printblocksonly,
 			int find_highblk)
 {
 	size_t rs;
diff --git a/gfs2/libgfs2/lang.c b/gfs2/libgfs2/lang.c
index ad9382f..40a4355 100644
--- a/gfs2/libgfs2/lang.c
+++ b/gfs2/libgfs2/lang.c
@@ -7,8 +7,8 @@
 #include <limits.h>
 #include <ctype.h>
 
-#include "parser.h"
 #include "lang.h"
+#include "parser.h"
 
 const char* ast_type_string[] = {
 	[AST_NONE] = "NONE",
-- 
1.8.0.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Cluster-devel] [PATCH] gfs2-utils: Fix build warnings in Fedora 18
  2012-12-14 22:30 [Cluster-devel] [PATCH] gfs2-utils: Fix build warnings in Fedora 18 Callum Massey
@ 2012-12-17 11:09 ` Andrew Price
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Price @ 2012-12-17 11:09 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi Callum,

On 14/12/12 22:30, Callum Massey wrote:
> Dropped the * from gzFile *gzin_fd because gzFile is no longer defined
> as a void pointer.
>
> Rearranged incldes in libgfs2/lang.c so parser.h gets passed struct
> lgfs2_lang_state correctly.
>
> Signed-off-by: Callum Massey <kais58@sucs.org>

This is now in gfs2-utils.git master.

> ---
>   gfs2/edit/savemeta.c | 2 +-
>   gfs2/libgfs2/lang.c  | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gfs2/edit/savemeta.c b/gfs2/edit/savemeta.c
> index f35c35d..cfe18eb 100644
> --- a/gfs2/edit/savemeta.c
> +++ b/gfs2/edit/savemeta.c
> @@ -831,7 +831,7 @@ void savemeta(char *out_fn, int saveoption, int gziplevel)
>   	exit(0);
>   }
>
> -static int restore_data(int fd, gzFile *gzin_fd, int printblocksonly,
> +static int restore_data(int fd, gzFile gzin_fd, int printblocksonly,
>   			int find_highblk)

Nice catch!

Thanks,

Andy

>   {
>   	size_t rs;
> diff --git a/gfs2/libgfs2/lang.c b/gfs2/libgfs2/lang.c
> index ad9382f..40a4355 100644
> --- a/gfs2/libgfs2/lang.c
> +++ b/gfs2/libgfs2/lang.c
> @@ -7,8 +7,8 @@
>   #include <limits.h>
>   #include <ctype.h>
>
> -#include "parser.h"
>   #include "lang.h"
> +#include "parser.h"
>
>   const char* ast_type_string[] = {
>   	[AST_NONE] = "NONE",
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-17 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-14 22:30 [Cluster-devel] [PATCH] gfs2-utils: Fix build warnings in Fedora 18 Callum Massey
2012-12-17 11:09 ` Andrew Price

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.