summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/create/pl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/create/pl.c')
-rw-r--r--usr.sbin/pkg_install/create/pl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c
index 0859e1f..9970249 100644
--- a/usr.sbin/pkg_install/create/pl.c
+++ b/usr.sbin/pkg_install/create/pl.c
@@ -102,7 +102,7 @@ trylink(const char *from, const char *to)
strcat(where_args, "|tar xpf -"); \
if (system(where_args)) { \
cleanup(0); \
- errx(2, "%s: can't invoke tar pipeline", __FUNCTION__); \
+ errx(2, "%s: can't invoke tar pipeline", __func__); \
} \
memset(where_args, 0, maxargs); \
last_chdir = NULL; \
@@ -134,7 +134,7 @@ copy_plist(const char *home, Package *plist)
where_args = malloc(maxargs);
if (!where_args) {
cleanup(0);
- errx(2, "%s: can't get argument list space", __FUNCTION__);
+ errx(2, "%s: can't get argument list space", __func__);
}
memset(where_args, 0, maxargs);
@@ -203,7 +203,7 @@ copy_plist(const char *home, Package *plist)
}
if (add_count < 0 || add_count > maxargs - where_count) {
cleanup(0);
- errx(2, "%s: oops, miscounted strings!", __FUNCTION__);
+ errx(2, "%s: oops, miscounted strings!", __func__);
}
where_count += add_count;
}
@@ -241,7 +241,7 @@ copy_plist(const char *home, Package *plist)
p->name);
if (add_count < 0 || add_count > maxargs - where_count) {
cleanup(0);
- errx(2, "%s: oops, miscounted strings!", __FUNCTION__);
+ errx(2, "%s: oops, miscounted strings!", __func__);
}
where_count += add_count;
last_chdir = (mythere ? mythere : where);
OpenPOWER on IntegriCloud