From c94931edf30d81eb9084c24694ba4af15517fdad Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 11 May 2002 04:17:55 +0000 Subject: replace __FUNCTION__ with standardized __func__. Requested by: jhb --- usr.sbin/pkg_install/create/pl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/pkg_install/create/pl.c') 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); -- cgit v1.1