summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-03 08:34:09 +0200
committerJim Meyering <meyering@redhat.com>2008-06-03 09:15:00 +0200
commit896b672499d6a31a6caf85411bcbdde6edc57668 (patch)
tree27683a9e32614e6ea09de5e06d7967164593bbd7 /src/copy.c
parent1b0b6c8d08785bf9b05931371259ac710a806e51 (diff)
downloadcoreutils-896b672499d6a31a6caf85411bcbdde6edc57668.tar.xz
use gnulib's progname module
* bootstrap.conf (gnulib_modules): Add progname. * src/*.c (program_name): Remove declaration. * (main): Call set_program_name rather than setting program_name. * src/nice.c (main): Cast program_name to "(char *)". * src/prog-fprintf.c: Include "system.h" * src/system.h: Include "progname.h". * maint.mk (sc_program_name): Adjust rule. Suggestion from Eric Blake.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c
index 7d33cb33a..82c6978e4 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -107,9 +107,6 @@ static bool owner_failure_ok (struct cp_options const *x);
static char const *top_level_src_name;
static char const *top_level_dst_name;
-/* The invocation name of this program. */
-extern char *program_name;
-
/* FIXME: describe */
/* FIXME: rewrite this to use a hash table so we avoid the quadratic
performance hit that's probably noticeable only on trees deeper