Skip to contentSkip to conversation

sandbox: sort header files in os.c

PATCH New Simon Glass 2 participants 4 messages Jan 10, 2012 – Jan 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v3 5/9 sandbox: sort header files in os.c

Tidy this up as the list is long and likely to get longer.

---
Changes in v2:
- Sort correctly: include/, sys/, linux/, asm/

Changes in v3:
- Keep 'U-Boot header' separate at the end

 arch/sandbox/cpu/os.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/sandbox/cpu/os.c +4 -4
index 6d55b5c..a1d324b 100644
@@ -19,15 +19,15 @@
  * MA 02111-1307 USA
  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <termios.h>
-#include <unistd.h>
 #include <time.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <unistd.h>
 #include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
 #include <linux/types.h>
 
 #include <os.h>
Signature · 1 line
1.7.3.1
#1 lore raw

PATCH v3 6/9 sandbox: Add required header to os.c

We should include the sys/time.h header to avoid warnings.

---
Changes in v2:
- Rebase after changes to sandbox header sort patch

 arch/sandbox/cpu/os.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/sandbox/cpu/os.c +1 -0
index a1d324b..093e7dc 100644
@@ -27,6 +27,7 @@
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #include <linux/types.h>
 
Signature · 1 line
1.7.3.1
#2 lore raw

PATCH v3 6/9 sandbox: Add required header to os.c

Quoted 1 line · On Tuesday 10 January 2012 18:54:06 Simon Glass wrote:

We should include the sys/time.h header to avoid warnings.

added to my sandbox branch
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120110/e3408b59/attachment.pgp>

#3 lore raw

PATCH v3 5/9 sandbox: sort header files in os.c

In reply to Simon Glass
Quoted 1 line · On Tuesday 10 January 2012 18:54:05 Simon Glass wrote:

Tidy this up as the list is long and likely to get longer.

added to my sandbox branch
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120110/a1b0451a/attachment.pgp>