summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/pen.c
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/lib/pen.c
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/lib/pen.c')
-rw-r--r--usr.sbin/pkg_install/lib/pen.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/pkg_install/lib/pen.c b/usr.sbin/pkg_install/lib/pen.c
index 5879108..eedda00 100644
--- a/usr.sbin/pkg_install/lib/pen.c
+++ b/usr.sbin/pkg_install/lib/pen.c
@@ -62,7 +62,7 @@ find_play_pen(char *pen, off_t sz)
errx(2,
"%s: can't find enough temporary space to extract the files, please set your\n"
"PKG_TMPDIR environment variable to a location with at least %ld bytes\n"
-"free", __FUNCTION__, (long)sz);
+"free", __func__, (long)sz);
return NULL;
}
return pen;
@@ -76,7 +76,7 @@ static void
pushPen(const char *pen)
{
if (++pdepth == MAX_STACK)
- errx(2, "%s: stack overflow.\n", __FUNCTION__);
+ errx(2, "%s: stack overflow.\n", __func__);
pstack[pdepth] = strdup(pen);
}
@@ -103,11 +103,11 @@ make_playpen(char *pen, off_t sz)
if (!mkdtemp(pen)) {
cleanup(0);
- errx(2, "%s: can't mktemp '%s'", __FUNCTION__, pen);
+ errx(2, "%s: can't mktemp '%s'", __func__, pen);
}
if (chmod(pen, 0700) == FAIL) {
cleanup(0);
- errx(2, "%s: can't mkdir '%s'", __FUNCTION__, pen);
+ errx(2, "%s: can't mkdir '%s'", __func__, pen);
}
if (Verbose) {
@@ -120,7 +120,7 @@ make_playpen(char *pen, off_t sz)
cleanup(0);
errx(2, "%s: not enough free space to create '%s'.\n"
"Please set your PKG_TMPDIR environment variable to a location\n"
- "with more space and\ntry the command again", __FUNCTION__, pen);
+ "with more space and\ntry the command again", __func__, pen);
}
if (!getcwd(Previous, FILENAME_MAX)) {
@@ -130,7 +130,7 @@ make_playpen(char *pen, off_t sz)
if (chdir(pen) == FAIL) {
cleanup(0);
- errx(2, "%s: can't chdir to '%s'", __FUNCTION__, pen);
+ errx(2, "%s: can't chdir to '%s'", __func__, pen);
}
if (PenLocation[0])
@@ -151,7 +151,7 @@ leave_playpen()
if (Previous[0]) {
if (chdir(Previous) == FAIL) {
cleanup(0);
- errx(2, "%s: can't chdir back to '%s'", __FUNCTION__, Previous);
+ errx(2, "%s: can't chdir back to '%s'", __func__, Previous);
}
Previous[0] = '\0';
}
OpenPOWER on IntegriCloud