diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-12-03 09:57:46 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-12-03 09:57:46 +0000 |
| commit | b1acbef629c283a9ca495833e5ec00bc5e54edc6 (patch) | |
| tree | 1f828167c7da294d08d6f41363f4ce3e05bc1243 /gnu/usr.bin/sort | |
| parent | d6171cc9bf3c68bc958a6db2e23138973302a845 (diff) | |
Declare function arguments, for portability.
Diffstat (limited to 'gnu/usr.bin/sort')
| -rw-r--r-- | gnu/usr.bin/sort/sort.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gnu/usr.bin/sort/sort.c b/gnu/usr.bin/sort/sort.c index 100d94732b4..397d87e789d 100644 --- a/gnu/usr.bin/sort/sort.c +++ b/gnu/usr.bin/sort/sort.c @@ -20,7 +20,7 @@ or (US mail) as Mike Haertel c/o Free Software Foundation. */ #ifndef lint -static char rcsid[] = "$Id: sort.c,v 1.3 1993/08/02 17:48:20 mycroft Exp $"; +static char rcsid[] = "$Id: sort.c,v 1.4 1993/12/03 09:57:46 mycroft Exp $"; #endif /* not lint */ #define _GNU_SOURCE @@ -1732,8 +1732,13 @@ Usage: %s [-cmus] [-t separator] [-o output-file] [-bdfiMnr] [+POS1 [-POS2]]\n\ exit (2); } -error(n,e, s,s1) { -if(e) fprintf(stderr,"error %d:", e); -fprintf(stderr,s, s1); -if(n) exit(n); +error (n, e, s, s1) + int n, e; + char *s, *s1; +{ + if (e) + fprintf(stderr,"error %d:", e); + fprintf(stderr, s, s1); + if (n) + exit(n); } |
