This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new c3b6a37  Remove unistd.h from files that don't need it
c3b6a37 is described below

commit c3b6a37144596693863571317fa5a9b4eda0acc8
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Fri Mar 5 09:39:13 2021 +0100

    Remove unistd.h from files that don't need it
    
    unistd.h is included in several files that seems not to need
    it for anything.
---
 kernel/os/src/arch/cortex_m0/os_fault.c  | 1 -
 kernel/os/src/arch/cortex_m3/os_fault.c  | 1 -
 kernel/os/src/arch/cortex_m33/os_fault.c | 1 -
 kernel/os/src/arch/cortex_m4/os_fault.c  | 1 -
 kernel/os/src/arch/cortex_m7/os_fault.c  | 1 -
 kernel/os/src/arch/rv32imac/os_fault.c   | 1 -
 libc/baselibc/src/sprintf.c              | 1 -
 libc/baselibc/src/vsprintf.c             | 1 -
 8 files changed, 8 deletions(-)

diff --git a/kernel/os/src/arch/cortex_m0/os_fault.c 
b/kernel/os/src/arch/cortex_m0/os_fault.c
index 816b4b3..f6cd216 100644
--- a/kernel/os/src/arch/cortex_m0/os_fault.c
+++ b/kernel/os/src/arch/cortex_m0/os_fault.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdint.h>
-#include <unistd.h>
 
 #include "os/mynewt.h"
 #include "console/console.h"
diff --git a/kernel/os/src/arch/cortex_m3/os_fault.c 
b/kernel/os/src/arch/cortex_m3/os_fault.c
index a1e844e..4d7d7a0 100644
--- a/kernel/os/src/arch/cortex_m3/os_fault.c
+++ b/kernel/os/src/arch/cortex_m3/os_fault.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdint.h>
-#include <unistd.h>
 
 #include "os/mynewt.h"
 #include "console/console.h"
diff --git a/kernel/os/src/arch/cortex_m33/os_fault.c 
b/kernel/os/src/arch/cortex_m33/os_fault.c
index c8caa41..bd4716e 100644
--- a/kernel/os/src/arch/cortex_m33/os_fault.c
+++ b/kernel/os/src/arch/cortex_m33/os_fault.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdint.h>
-#include <unistd.h>
 
 #include "os/mynewt.h"
 #include "console/console.h"
diff --git a/kernel/os/src/arch/cortex_m4/os_fault.c 
b/kernel/os/src/arch/cortex_m4/os_fault.c
index 6809f90..16069ae 100644
--- a/kernel/os/src/arch/cortex_m4/os_fault.c
+++ b/kernel/os/src/arch/cortex_m4/os_fault.c
@@ -18,7 +18,6 @@
  */
 
 #include <stdint.h>
-#include <unistd.h>
 
 #include "os/mynewt.h"
 #include "console/console.h"
diff --git a/kernel/os/src/arch/cortex_m7/os_fault.c 
b/kernel/os/src/arch/cortex_m7/os_fault.c
index c0c5e1b..cf49bf5 100644
--- a/kernel/os/src/arch/cortex_m7/os_fault.c
+++ b/kernel/os/src/arch/cortex_m7/os_fault.c
@@ -27,7 +27,6 @@
 #endif
 
 #include <stdint.h>
-#include <unistd.h>
 
 struct exception_frame {
     uint32_t r0;
diff --git a/kernel/os/src/arch/rv32imac/os_fault.c 
b/kernel/os/src/arch/rv32imac/os_fault.c
index 0117cbb..cde9568 100644
--- a/kernel/os/src/arch/rv32imac/os_fault.c
+++ b/kernel/os/src/arch/rv32imac/os_fault.c
@@ -19,7 +19,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "os/mynewt.h"
 #include "os_priv.h"
diff --git a/libc/baselibc/src/sprintf.c b/libc/baselibc/src/sprintf.c
index 26843ea..9da6ae7 100644
--- a/libc/baselibc/src/sprintf.c
+++ b/libc/baselibc/src/sprintf.c
@@ -3,7 +3,6 @@
  */
 
 #include <stdio.h>
-#include <unistd.h>
 #include <stdint.h>
 
 int sprintf(char *buffer, const char *format, ...)
diff --git a/libc/baselibc/src/vsprintf.c b/libc/baselibc/src/vsprintf.c
index db2add2..c88201e 100644
--- a/libc/baselibc/src/vsprintf.c
+++ b/libc/baselibc/src/vsprintf.c
@@ -3,7 +3,6 @@
  */
 
 #include <stdio.h>
-#include <unistd.h>
 #include <stdint.h>
 
 int vsprintf(char *buffer, const char *format, va_list ap)

Reply via email to