aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:17:00 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:33:23 +1300
commitacfba0d01678609917934526c11558d1cf814b73 (patch)
treeabf8a38dd5ebaff5c25bd6220ce286b32580f894
parentFree some memory; appease valgrind(1) (diff)
downloadtunics-acfba0d01678609917934526c11558d1cf814b73.tar.gz
tunics-acfba0d01678609917934526c11558d1cf814b73.zip
Move ls includes into a header
-rw-r--r--ls.c6
-rw-r--r--ls.h10
2 files changed, 11 insertions, 5 deletions
diff --git a/ls.c b/ls.c
index 251d5fb..d6f7b89 100644
--- a/ls.c
+++ b/ls.c
@@ -1,8 +1,4 @@
-#include <dirent.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
+#include "ls.h"
int main(int argc, char **argv)
{
diff --git a/ls.h b/ls.h
new file mode 100644
index 0000000..d069cf1
--- /dev/null
+++ b/ls.h
@@ -0,0 +1,10 @@
+#ifndef __LS_H
+#define __LS_H
+
+#include <dirent.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+
+#endif