svn commit: samba r6586 - in branches/SAMBA_3_0/source: lib libads libsmb smbd tests torture

derrell at samba.org derrell at samba.org
Mon May 2 18:06:47 GMT 2005


herb at samba.org writes:

> Log:
> get rid of a few more compiler warnings
>
> Modified: branches/SAMBA_3_0/source/lib/dummyroot.c
> ===================================================================
> --- branches/SAMBA_3_0/source/lib/dummyroot.c	2005-05-02 16:23:02 UTC (rev 6585)
> +++ branches/SAMBA_3_0/source/lib/dummyroot.c	2005-05-02 17:49:43 UTC (rev 6586)
> @@ -22,6 +22,9 @@
>  /* Stupid dummy functions required due to the horrible dependency mess
>     in Samba. */
>  
> +void become_root(void);
> +void unbecome_root(void);
> +
>  void become_root(void)
>  {
>          return;
>

Herb, I don't get it.  What is the purpose of a forward declaration
immediately prior to an actual function declaration?  What type of warning
were you getting that this solves?

Confused,

Derrell


More information about the samba-technical mailing list