This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove obsolete function keyword


2011-05-30  Andreas Schwab  <schwab@redhat.com>

	* elf/sotruss.ksh: Remove obsolete function keyword.
---
 elf/sotruss.ksh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/elf/sotruss.ksh b/elf/sotruss.ksh
index 6bbdc89..fe2ec05 100755
--- a/elf/sotruss.ksh
+++ b/elf/sotruss.ksh
@@ -29,7 +29,7 @@ unset SOTRUSS_NOINDENT
 SOTRUSS_WHICH=$$
 lib='@PREFIX@/$LIB/audit/sotruss-lib.so'
 
-function do_help {
+do_help () {
   echo $"Usage: sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]
   -F, --from FROMLIST     trace calls from objects on FORMLIST
   -T, --to TOLIST         trace calls to objects on TOLIST
@@ -52,13 +52,13 @@ function do_help {
   exit 0
 }
 
-function do_missing_arg {
+do_missing_arg () {
   printf >&2 $"%s: option requires an argument -- '%s'\n" sotruss "$1"
   printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
   exit 1
 }
 
-function do_ambiguous {
+do_ambiguous () {
   printf >&2 $"%s: option is ambiguous; possibilities:"
   while test $# -gt 0; do
     printf >&2 " '%s'" $1
-- 
1.7.4.4


-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]