summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-11 04:17:55 +0000
committeralfred <alfred@FreeBSD.org>2002-05-11 04:17:55 +0000
commitc94931edf30d81eb9084c24694ba4af15517fdad (patch)
tree9297bf30ccd1af2a38e1970e4796b24b86ae5c73 /usr.sbin/pkg_install/delete
parentdf59877e64c2c065850c9512c642219ffc4475a3 (diff)
downloadFreeBSD-src-c94931edf30d81eb9084c24694ba4af15517fdad.zip
FreeBSD-src-c94931edf30d81eb9084c24694ba4af15517fdad.tar.gz
replace __FUNCTION__ with standardized __func__.
Requested by: jhb
Diffstat (limited to 'usr.sbin/pkg_install/delete')
-rw-r--r--usr.sbin/pkg_install/delete/perform.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c
index ffbfbd9..a4f8370 100644
--- a/usr.sbin/pkg_install/delete/perform.c
+++ b/usr.sbin/pkg_install/delete/perform.c
@@ -77,14 +77,14 @@ pkg_perform(char **pkgs)
*/
rbtmp = rb = alloca((errcode + 1) * sizeof(*rb));
if (rb == NULL) {
- warnx("%s(): alloca() failed", __FUNCTION__);
+ warnx("%s(): alloca() failed", __func__);
err_cnt++;
continue;
}
STAILQ_FOREACH(rb_entry, rb_list, link) {
*rbtmp = alloca(strlen(rb_entry->pkgname) + 1);
if (*rbtmp == NULL) {
- warnx("%s(): alloca() failed", __FUNCTION__);
+ warnx("%s(): alloca() failed", __func__);
err_cnt++;
continue;
}
@@ -140,7 +140,7 @@ pkg_do(char *pkg)
if (!getcwd(home, FILENAME_MAX)) {
cleanup(0);
- errx(2, "%s: unable to get current working directory!", __FUNCTION__);
+ errx(2, "%s: unable to get current working directory!", __func__);
}
if (chdir(LogDir) == FAIL) {
@@ -240,7 +240,7 @@ pkg_do(char *pkg)
if (chdir(home) == FAIL) {
cleanup(0);
- errx(2, "%s: unable to return to working directory %s!", __FUNCTION__,
+ errx(2, "%s: unable to return to working directory %s!", __func__,
home);
}
@@ -273,7 +273,7 @@ pkg_do(char *pkg)
if (chdir(home) == FAIL) {
cleanup(0);
- errx(2, "%s: unable to return to working directory %s!", __FUNCTION__,
+ errx(2, "%s: unable to return to working directory %s!", __func__,
home);
}
@@ -301,7 +301,7 @@ sanity_check(char *pkg)
{
if (!fexists(CONTENTS_FNAME)) {
cleanup(0);
- errx(2, "%s: installed package %s has no %s file!", __FUNCTION__,
+ errx(2, "%s: installed package %s has no %s file!", __func__,
pkg, CONTENTS_FNAME);
}
}
OpenPOWER on IntegriCloud