diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-09-22 16:56:49 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-09-22 16:56:49 +0000 |
commit | 5b6654bdf6f88b415d84b148a3789f52f1ec2685 (patch) | |
tree | ce233aa140fe0059fed10f53cfdd1be159abf2c8 /lib/libc/locale/collate.c | |
parent | 59b52ed829c8199391024052fe9e5647452fcdb7 (diff) | |
download | FreeBSD-src-5b6654bdf6f88b415d84b148a3789f52f1ec2685.zip FreeBSD-src-5b6654bdf6f88b415d84b148a3789f52f1ec2685.tar.gz |
Prefer C99's __func__ over GCC's __FUNCTION__.
Diffstat (limited to 'lib/libc/locale/collate.c')
-rw-r--r-- | lib/libc/locale/collate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/locale/collate.c b/lib/libc/locale/collate.c index a4eec6b..90c78ef 100644 --- a/lib/libc/locale/collate.c +++ b/lib/libc/locale/collate.c @@ -202,14 +202,14 @@ __collate_substitute(s) delta += delta / 8; dest_str = malloc(dest_len = delta); if (dest_str == NULL) - __collate_err(EX_OSERR, __FUNCTION__); + __collate_err(EX_OSERR, __func__); len = 0; while (*s) { nlen = len + strlen(__collate_substitute_table[*s]); if (dest_len <= nlen) { dest_str = reallocf(dest_str, dest_len = nlen + delta); if (dest_str == NULL) - __collate_err(EX_OSERR, __FUNCTION__); + __collate_err(EX_OSERR, __func__); } (void)strcpy(dest_str + len, __collate_substitute_table[*s++]); len = nlen; @@ -246,7 +246,7 @@ __collate_strdup(s) u_char *t = strdup(s); if (t == NULL) - __collate_err(EX_OSERR, __FUNCTION__); + __collate_err(EX_OSERR, __func__); return (t); } |