Cleanup patch from Vladimir N. Oleynik.
[oweals/busybox.git] / ln.c
diff --git a/ln.c b/ln.c
index ead5322fa88351f8e579b1262e369b0ca6993b0e..54e81f4c54c55f04868423759ffb00a45ef58415 100644 (file)
--- a/ln.c
+++ b/ln.c
@@ -2,7 +2,7 @@
 /*
  * Mini ln implementation for busybox
  *
- * Copyright (C) 1999,2000 by Lineo, inc.
+ * Copyright (C) 1999,2000,2001 by Lineo, inc.
  * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
 
 #include <stdio.h>
 #include <dirent.h>
+#include <string.h>
+#include <stdlib.h>
 #include <errno.h>
+#include <unistd.h>
 
-#define LN_SYMLINK             1
-#define LN_FORCE                       2
-#define LN_NODEREFERENCE       4
+static const int LN_SYMLINK = 1;
+static const int LN_FORCE = 2;
+static const int LN_NODEREFERENCE = 4;
 
 /*
  * linkDestName is where the link points to,