diff options
author | ache <ache@FreeBSD.org> | 1999-10-24 04:41:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-10-24 04:41:31 +0000 |
commit | d8f93ede383e9abcfdda58b79d5444b4bab65c6c (patch) | |
tree | ecec7553eee6f0ab20c70d4bdee0ce0b704fa4b6 /usr.bin/uniq | |
parent | c870ad362411ad3d1fca6f747f0a1884f6bd2284 (diff) | |
download | FreeBSD-src-d8f93ede383e9abcfdda58b79d5444b4bab65c6c.zip FreeBSD-src-d8f93ede383e9abcfdda58b79d5444b4bab65c6c.tar.gz |
Cosmetique: use standard prototypes scheme
Back out prev. change: toupper is more compatible with sort -f
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r-- | usr.bin/uniq/uniq.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index 1a5d8dc..e185cef 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -67,19 +67,7 @@ void show __P((FILE *, char *)); char *skip __P((char *)); void obsolete __P((char *[])); static void usage __P((void)); - -int stricoll(char *s1, char *s2) -{ - char *p, line1[MAXLINELEN], line2[MAXLINELEN]; - - for (p = line1; *s1; s1++) - *p++ = tolower((unsigned char)*s1); - *p = '\0'; - for (p = line2; *s2; s2++) - *p++ = tolower((unsigned char)*s2); - *p = '\0'; - return strcoll(s1, s2); -} +int stricoll __P((char *, char*)); int main (argc, argv) @@ -274,3 +262,18 @@ usage() "usage: uniq [-c | -du | -i] [-f fields] [-s chars] [input [output]]\n"); exit(1); } + +int +stricoll(s1, s2) + char *s1, *s2; +{ + char *p, line1[MAXLINELEN], line2[MAXLINELEN]; + + for (p = line1; *s1; s1++) + *p++ = toupper((unsigned char)*s1); + *p = '\0'; + for (p = line2; *s2; s2++) + *p++ = toupper((unsigned char)*s2); + *p = '\0'; + return strcoll(s1, s2); +} |