more bugs fixed -- found doing regression testing
[oweals/busybox.git] / ln.c
diff --git a/ln.c b/ln.c
index e81dbafaec49667f99cb70187ad8d7202928a466..e69cb024a03cb1ab6fbb368b018c335b2dbd3483 100644 (file)
--- a/ln.c
+++ b/ln.c
@@ -30,9 +30,9 @@
 #include <dirent.h>
 #include <errno.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 +55,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, "/");