summaryrefslogtreecommitdiff
path: root/src/kill.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/kill.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/kill.c')
-rw-r--r--src/kill.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/kill.c b/src/kill.c
index 21799076b..1fd495840 100644
--- a/src/kill.c
+++ b/src/kill.c
@@ -60,9 +60,6 @@
# endif
#endif
-/* The name this program was run with, for error messages. */
-char const *program_name;
-
static char const short_options[] =
"0::1::2::3::4::5::6::7::8::9::"
"A::B::C::D::E::F::G::H::I::J::K::L::M::"
@@ -241,7 +238,7 @@ main (int argc, char **argv)
char signame[SIG2STR_MAX];
initialize_main (&argc, &argv);
- program_name = argv[0];
+ set_program_name (argv[0]);
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);