Fix some formatting
[oweals/busybox.git] / ln.c
diff --git a/ln.c b/ln.c
index e81dbafaec49667f99cb70187ad8d7202928a466..d6bf6443af08338dafa713b96eabb53869a26bd9 100644 (file)
--- a/ln.c
+++ b/ln.c
 
 #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,
@@ -55,9 +58,9 @@ static int fs_link(const char *link_DestName, const char *link_SrcName, const in
                strcpy(srcName, link_SrcName);
 
        if (flag&LN_NODEREFERENCE)
-               srcIsDir = isDirectory(srcName, TRUE, NULL);
+               srcIsDir = is_directory(srcName, TRUE, NULL);
        else
-               srcIsDir = isDirectory(srcName, FALSE, NULL);   
+               srcIsDir = is_directory(srcName, FALSE, NULL);  
        
        if ((srcIsDir==TRUE)&&((flag&LN_NODEREFERENCE)==0)) {
                strcat(srcName, "/");