From 10ab9c96e73bf35d2daf45259026cea16dd1eae7 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 26 Sep 2016 18:05:09 +0200 Subject: [PATCH] Use "" instead of <> for includes, for consistency. Also remove unuseful includes (already in "core/system.h") --- drivers/i2c.c | 4 ---- include/core/pio.h | 2 +- include/lib/stdint.h | 2 +- include/lib/string.h | 2 +- lib/string.c | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/i2c.c b/drivers/i2c.c index 56d9e80..909854b 100644 --- a/drivers/i2c.c +++ b/drivers/i2c.c @@ -29,10 +29,6 @@ * Refer to LPC82x documentation (UM10800.pdf) for more information. */ -#include "lib/stdint.h" - -#include "core/lpc_regs.h" -#include "core/lpc_core.h" #include "core/system.h" #include "lib/string.h" #include "lib/errno.h" diff --git a/include/core/pio.h b/include/core/pio.h index 1f6f284..573454b 100644 --- a/include/core/pio.h +++ b/include/core/pio.h @@ -26,7 +26,7 @@ * It has nothing related to the GPIO function of the pins. */ -#include +#include "core/lpc_regs.h" diff --git a/include/lib/stdint.h b/include/lib/stdint.h index 3b5318d..f77b81d 100644 --- a/include/lib/stdint.h +++ b/include/lib/stdint.h @@ -1,5 +1,5 @@ /**************************************************************************** - * lib/"lib/stdint.h" + * lib/stdint.h * * Copyright 2016 Nathael Pajani * diff --git a/include/lib/string.h b/include/lib/string.h index 5866b49..748ea37 100644 --- a/include/lib/string.h +++ b/include/lib/string.h @@ -20,7 +20,7 @@ #ifndef LIB_STRING_H #define LIB_STRING_H -#include +#include "lib/stddef.h" #include "lib/stdint.h" /** diff --git a/lib/string.c b/lib/string.c index 834e514..ee69e32 100644 --- a/lib/string.c +++ b/lib/string.c @@ -15,7 +15,7 @@ * reentrant and should be faster). Use only strsep() in new code, please. */ -#include +#include "lib/stddef.h" #include "lib/stdint.h" /** -- 2.43.0