[PATCH weston] Make config.h inclusion consistent

Hardening rdp.effort at gmail.com
Thu Jun 16 21:01:01 UTC 2016


Le 16/06/2016 03:13, Bryce Harrington a écrit :
> Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>

Reviewed-by: David Fort <contact at hardening-consulting.com>

> ---
>  clients/multi-resource.c      | 2 +-
>  clients/presentation-shm.c    | 2 +-
>  clients/simple-damage.c       | 2 +-
>  clients/simple-dmabuf-intel.c | 2 +-
>  clients/simple-dmabuf-v4l.c   | 2 +-
>  clients/simple-shm.c          | 2 +-
>  clients/simple-touch.c        | 2 +-
>  clients/terminal.c            | 2 +-
>  clients/weston-simple-im.c    | 2 +-
>  src/cms-colord.c              | 4 +---
>  xwayland/hash.c               | 2 +-
>  11 files changed, 11 insertions(+), 13 deletions(-)
> 
> diff --git a/clients/multi-resource.c b/clients/multi-resource.c
> index b061e68..c283022 100644
> --- a/clients/multi-resource.c
> +++ b/clients/multi-resource.c
> @@ -22,7 +22,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/presentation-shm.c b/clients/presentation-shm.c
> index 2d9b885..998ce8b 100644
> --- a/clients/presentation-shm.c
> +++ b/clients/presentation-shm.c
> @@ -23,7 +23,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/simple-damage.c b/clients/simple-damage.c
> index 82091d5..bb81902 100644
> --- a/clients/simple-damage.c
> +++ b/clients/simple-damage.c
> @@ -23,7 +23,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/simple-dmabuf-intel.c b/clients/simple-dmabuf-intel.c
> index 2ac2200..fa2bfc4 100644
> --- a/clients/simple-dmabuf-intel.c
> +++ b/clients/simple-dmabuf-intel.c
> @@ -22,7 +22,7 @@
>   * OF THIS SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/simple-dmabuf-v4l.c b/clients/simple-dmabuf-v4l.c
> index a73556c..7ee5cce 100644
> --- a/clients/simple-dmabuf-v4l.c
> +++ b/clients/simple-dmabuf-v4l.c
> @@ -20,7 +20,7 @@
>   * OF THIS SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/simple-shm.c b/clients/simple-shm.c
> index 1aa26ce..c442d88 100644
> --- a/clients/simple-shm.c
> +++ b/clients/simple-shm.c
> @@ -22,7 +22,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/simple-touch.c b/clients/simple-touch.c
> index 446f2ca..8fd0b0a 100644
> --- a/clients/simple-touch.c
> +++ b/clients/simple-touch.c
> @@ -22,7 +22,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/clients/terminal.c b/clients/terminal.c
> index a70fef3..66bdeec 100644
> --- a/clients/terminal.c
> +++ b/clients/terminal.c
> @@ -21,7 +21,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdbool.h>
>  #include <stdint.h>
> diff --git a/clients/weston-simple-im.c b/clients/weston-simple-im.c
> index 4c1d7cf..426fec7 100644
> --- a/clients/weston-simple-im.c
> +++ b/clients/weston-simple-im.c
> @@ -21,7 +21,7 @@
>   * DEALINGS IN THE SOFTWARE.
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> diff --git a/src/cms-colord.c b/src/cms-colord.c
> index c88eb11..b9bc9e3 100644
> --- a/src/cms-colord.c
> +++ b/src/cms-colord.c
> @@ -23,9 +23,7 @@
>   * SOFTWARE.
>   */
>  
> -#ifdef HAVE_CONFIG_H
> -#include <config.h>
> -#endif
> +#include "config.h"
>  
>  #include <fcntl.h>
>  #include <unistd.h>
> diff --git a/xwayland/hash.c b/xwayland/hash.c
> index 54f3de9..820e51f 100644
> --- a/xwayland/hash.c
> +++ b/xwayland/hash.c
> @@ -32,7 +32,7 @@
>   *    Keith Packard <keithp at keithp.com>
>   */
>  
> -#include <config.h>
> +#include "config.h"
>  
>  #include <stdlib.h>
>  #include <stdint.h>
> 


-- 
David FORT
website: http://www.hardening-consulting.com/



More information about the wayland-devel mailing list