aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/init
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/init')
-rw-r--r--usr.sbin/init/Makefile7
-rw-r--r--usr.sbin/init/main.c5
2 files changed, 5 insertions, 7 deletions
diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile
index a7af644..13ac173 100644
--- a/usr.sbin/init/Makefile
+++ b/usr.sbin/init/Makefile
@@ -1,7 +1,6 @@
-CC =
-LD =
-LDSO =
+include ../sbin.mk
.PHONY: all
all:
- $(CC) -pie -nostdlib main.c -o init -e main
+ @ # $(CC) -pie -nostdlib main.c -o init -e main
+ $(CC) main.c -o init $(INTERNAL_CFLAGS)
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c
index af62d76..e840c8e 100644
--- a/usr.sbin/init/main.c
+++ b/usr.sbin/init/main.c
@@ -1,6 +1,5 @@
int
-main(void)
+main(int argc, char **argv)
{
- /* Do nothing */
- while (1);
+ return 0;
}