[PATCH v2 05/42] PseudoramiX: Fix ExtensionInit prototype

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 6 15:40:00 PST 2011


On Fri, Dec 02, 2011 at 11:27:13AM +0000, Daniel Stone wrote:
> Similar to the fix for Xinerama, make sure PseudoramiXExtensionInit is
> declared as taking no arguments, since its only callers call it with no
> arguments ...
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
  Peter

> ---
>  hw/xquartz/pseudoramiX.c |    2 +-
>  hw/xquartz/pseudoramiX.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> v2: New.
> 
> diff --git a/hw/xquartz/pseudoramiX.c b/hw/xquartz/pseudoramiX.c
> index 5a5b9c2..89ad94f 100644
> --- a/hw/xquartz/pseudoramiX.c
> +++ b/hw/xquartz/pseudoramiX.c
> @@ -111,7 +111,7 @@ PseudoramiXAddScreen(int x, int y, int w, int h)
>  
>  // Initialize PseudoramiX.
>  // Copied from PanoramiXExtensionInit
> -void PseudoramiXExtensionInit(int argc, char *argv[])
> +void PseudoramiXExtensionInit(void)
>  {
>      Bool	     	success = FALSE;
>      ExtensionEntry 	*extEntry;
> diff --git a/hw/xquartz/pseudoramiX.h b/hw/xquartz/pseudoramiX.h
> index df5010d..2ffa4cf 100644
> --- a/hw/xquartz/pseudoramiX.h
> +++ b/hw/xquartz/pseudoramiX.h
> @@ -5,5 +5,5 @@
>  extern int noPseudoramiXExtension;
>  
>  void PseudoramiXAddScreen(int x, int y, int w, int h);
> -void PseudoramiXExtensionInit(int argc, char *argv[]);
> +void PseudoramiXExtensionInit(void);
>  void PseudoramiXResetScreens(void);
> -- 
> 1.7.7.3
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list