[uClinux-dev] [patch] cleanup user/sash/

Greg Ungerer gerg at snapgear.com
Sun Jan 7 23:49:03 EST 2007


Hi Mike,

Mike Frysinger wrote:
> attached patch cleans up all the warnings in the code that i get but more 
> importantly, i drop the linux include as that header is not installed with 
> sanitized kernel headers

Applied, thanks.

Regards
Greg



> ------------------------------------------------------------------------
> 
> Index: user/sash/reboot.c
> ===================================================================
> RCS file: /var/cvs/uClinux-dist/user/sash/reboot.c,v
> retrieving revision 1.1.1.2
> diff -u -p -r1.1.1.2 reboot.c
> --- user/sash/reboot.c	12 Jul 2006 05:03:28 -0000	1.1.1.2
> +++ user/sash/reboot.c	7 Jan 2007 11:55:38 -0000
> @@ -12,7 +12,6 @@
>   * AUG/99 -- added delay option to reboot
>   */
>  
> -#include <linux/autoconf.h>
>  #include <config/autoconf.h>
>  
>  #include <stdlib.h>
> Index: user/sash/shutdown.c
> ===================================================================
> RCS file: /var/cvs/uClinux-dist/user/sash/shutdown.c,v
> retrieving revision 1.1.1.2
> diff -u -p -r1.1.1.2 shutdown.c
> --- user/sash/shutdown.c	26 Feb 2003 01:54:21 -0000	1.1.1.2
> +++ user/sash/shutdown.c	7 Jan 2007 11:55:38 -0000
> @@ -10,9 +10,9 @@
>  
>  #include "sash.h"
>  
> -#include <linux/autoconf.h>
> -
> -
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <unistd.h>
>  #include <string.h>
>  #include <fcntl.h>
>  #include <sys/types.h>
> Index: user/sash/libsash/utils.c
> ===================================================================
> RCS file: /var/cvs/uClinux-dist/user/sash/libsash/utils.c,v
> retrieving revision 1.1.1.4
> diff -u -p -r1.1.1.4 utils.c
> --- user/sash/libsash/utils.c	10 Aug 2005 00:15:04 -0000	1.1.1.4
> +++ user/sash/libsash/utils.c	7 Jan 2007 11:55:38 -0000
> @@ -8,6 +8,7 @@
>  
>  #include "sash.h"
>  
> +#include <unistd.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>
>  #include <dirent.h>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com


More information about the uClinux-dev mailing list