st
simple terminal
git clone https://9o.is/git/st.git
commit 618df131244a7c4997ec784f9d6c6ef59f0e8e16 parent a244ba2bd45b858438a6ae9dee819784e993ceee Author: Devin J. Pohly <djpohly@gmail.com> Date: Sat, 24 Feb 2018 16:45:42 -0600 Clean up #includes Signed-off-by: Devin J. Pohly <djpohly@gmail.com> Diffstat:
| M | st.c | | | 7 | ------- |
| M | st.h | | | 3 | +++ |
| M | x.c | | | 3 | +-- |
3 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/st.c b/st.c @@ -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 @@ -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 @@ -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>