[hackers] [st] Clean up #includes || Devin J. Pohly
commit 403c57ebb5b3745ff93e49b87e526c49dc59a5b9
Author: Devin J. Pohly <djpohly_AT_gmail.com>
AuthorDate: Sat Feb 24 16:45:42 2018 -0600
Commit: Devin J. Pohly <djpohly_AT_gmail.com>
CommitDate: Sun Feb 25 21:56:26 2018 -0600
Clean up #includes
Signed-off-by: Devin J. Pohly <djpohly_AT_gmail.com>
diff --git a/st.c b/st.c
index f46aab6..543c615 100644
--- a/st.c
+++ b/st.c
_AT_@ -3,24 +3,17 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
-#include <locale.h>
#include <pwd.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
-#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/select.h>
-#include <sys/stat.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <termios.h>
-#include <time.h>
#include <unistd.h>
-#include <libgen.h>
#include <wchar.h>
#include "st.h"
diff --git a/st.h b/st.h
index 1015fc6..dac64d8 100644
--- a/st.h
+++ b/st.h
_AT_@ -1,5 +1,8 @@
/* See LICENSE for license details. */
+#include <stdint.h>
+#include <sys/types.h>
+
/* macros */
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))
diff --git a/x.c b/x.c
index f7b0528..d0acfee 100644
--- a/x.c
+++ b/x.c
_AT_@ -1,15 +1,14 @@
/* See LICENSE for license details. */
#include <errno.h>
+#include <limits.h>
#include <locale.h>
#include <signal.h>
-#include <stdint.h>
#include <sys/select.h>
#include <time.h>
#include <unistd.h>
#include <libgen.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
-#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/Xft/Xft.h>
Received on Fri Mar 09 2018 - 15:37:40 CET
This archive was generated by hypermail 2.3.0
: Fri Mar 09 2018 - 15:51:17 CET