[Snek] [PATCH 1/4] Unexport close_noerrno, not used outside of utils.c

Mikhail Gusarov dottedmag at dottedmag.net
Sat Feb 22 15:09:01 PST 2020


---
 ports/ev3/utils.c | 2 +-
 ports/ev3/utils.h | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/ports/ev3/utils.c b/ports/ev3/utils.c
index 5d04ee0..b4d7626 100644
--- a/ports/ev3/utils.c
+++ b/ports/ev3/utils.c
@@ -26,7 +26,7 @@ cutprefix(const char *s, const char *prefix, int prefixlen)
 	return s + prefixlen;
 }
 
-void
+static void
 close_noerrno(int fd)
 {
 	int saved_errno = errno;
diff --git a/ports/ev3/utils.h b/ports/ev3/utils.h
index 8d1cbf3..77c465b 100644
--- a/ports/ev3/utils.h
+++ b/ports/ev3/utils.h
@@ -24,12 +24,6 @@
 const char *
 cutprefix(const char *s, const char *prefix, int prefixlen);
 
-/*
- * Closes fd, preserves errno.
- */
-void
-close_noerrno(int fd);
-
 /*
  * Reads up to bufsize bytes of data from sysfs file filename in directory dirfd
  * and places it into bufffer buf.
-- 
2.24.0



More information about the Snek mailing list