about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/ldd.bash.in9
-rw-r--r--elf/ldd.sh.in9
-rw-r--r--elf/sln.c6
3 files changed, 12 insertions, 12 deletions
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 9bf88d1ae7..f6ffa6b4e8 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -114,7 +114,8 @@ case $# in
     exit 1
   elif test -r "$file"; then
     test -x "$file" ||
-    echo 'ldd:' $"warning: you do not have execution permission for" "\`$file'"
+    echo 'ldd:' $"\
+warning: you do not have execution permission for" "\`$file'" >&2
     verify_out=`${RTLD} --verify "$file"`
     case $? in
     0)
@@ -135,7 +136,7 @@ case $# in
       ;;
     esac
   else
-    echo 'ldd:' $"error: you do not have read permission for" "\`$file'"
+    echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
     exit 1
   fi
   exit
@@ -155,7 +156,7 @@ case $# in
       result=1
     elif test -r "$file"; then
       test -x "$file" || echo 'ldd:' $"\
-warning: you do not have execution permission for" "\`$file'"
+warning: you do not have execution permission for" "\`$file'" >&2
       verify_out=`${RTLD} --verify "$file"`
       case $? in
       0)
@@ -177,7 +178,7 @@ warning: you do not have execution permission for" "\`$file'"
 	;;
       esac
     else
-      echo 'ldd:' $"error: you do not have read permission for" "\`$file'"
+      echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
       result=1
     fi
   done
diff --git a/elf/ldd.sh.in b/elf/ldd.sh.in
index 2447a90a3e..4eda958b4b 100644
--- a/elf/ldd.sh.in
+++ b/elf/ldd.sh.in
@@ -112,7 +112,8 @@ Try \`ldd --help' for more information."
   else
     if test -r "$file"; then
       test -x "$file" ||
-	echo "ldd: warning: you do not have execution permission for \`$file'"
+	echo "\
+ldd: warning: you do not have execution permission for \`$file'" >&2
       verify_out=`${RTLD} --verify "$file"`
       case $? in
       0)
@@ -132,7 +133,7 @@ Try \`ldd --help' for more information."
 	;;
       esac
     else
-      echo "ldd: error: you do not have read permission for \`$file'"
+      echo "ldd: error: you do not have read permission for \`$file'" >&2
       exit 1
     fi
   fi
@@ -155,7 +156,7 @@ Try \`ldd --help' for more information."
     else
       if test -r "$file"; then
 	test -x "$file" || echo "\
-ldd: warning: you do not have execution permission for \`$file'"
+ldd: warning: you do not have execution permission for \`$file'" >&2
 	verify_out=`${RTLD} --verify "$file"`
 	case $? in
 	0)
@@ -175,7 +176,7 @@ ldd: warning: you do not have execution permission for \`$file'"
 	  ;;
 	esac
       else
-	echo "ldd: error: you do not have read permission for \`$file'"
+	echo "ldd: error: you do not have read permission for \`$file'" >&2
 	result=1
       fi
     fi
diff --git a/elf/sln.c b/elf/sln.c
index a958bac0cf..f9344692e6 100644
--- a/elf/sln.c
+++ b/elf/sln.c
@@ -34,9 +34,7 @@ static int makesymlink __P ((const char *src, const char *dest));
 static int makesymlinks __P ((const char *file));
 
 int
-main (argc, argv)
-     int argc;
-     char **argv;
+main (int argc, char **argv)
 {
   switch (argc)
     {
@@ -162,7 +160,7 @@ makesymlink (src, dest)
       fprintf (stderr, "%s: invalid destination: %s\n", dest, error);
       return -1;
     }
-       
+
 #ifdef S_ISLNK
   if (symlink (src, dest) == 0)
 #else