diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-05 09:23:51 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-05 09:23:51 +0200 |
commit | 61ca18819ebe630f48564575a796ebcfac5ea957 (patch) | |
tree | 4ebc329c4b23367fd2070ef661fda25ff1abf4b8 /debug | |
parent | 8d0af5e95b8d4beb947bda15f232085b1d6f3cbb (diff) | |
download | parted-61ca18819ebe630f48564575a796ebcfac5ea957.tar.gz |
use gnulib's progname module
* bootstrap.conf (gnulib_modules): Add progname.
* debug/clearfat/clearfat.c: Include "progname.h".
(main): Call set_program_name rather than setting program_name.
* parted/parted.c: Likewise.
* partprobe/partprobe.c: Likewise.
* libparted/tests/disk.c: Include "progname.h" and call
set_program_name even though program_name isn't used, yet.
* libparted/tests/label.c: Likewise.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/clearfat/clearfat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/debug/clearfat/clearfat.c b/debug/clearfat/clearfat.c index dd35798..7a4c61f 100644 --- a/debug/clearfat/clearfat.c +++ b/debug/clearfat/clearfat.c @@ -1,6 +1,6 @@ /* clear_fat - a tool to clear unused space (for testing purposes) - Copyright (C) 2000, 2007 Free Software Foundation, Inc. + Copyright (C) 2000, 2007-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,6 +26,7 @@ #include "configmake.h" #include "error.h" #include "long-options.h" +#include "progname.h" #include "../../libparted/fs/fat/fat.h" @@ -52,9 +53,6 @@ #define AUTHORS \ "<http://parted.alioth.debian.org/cgi-bin/trac.cgi/browser/AUTHORS>" -/* The name this program was run with. */ -char *program_name; - void usage (int status) { @@ -267,7 +265,7 @@ main (int argc, char* argv[]) PedPartition* part; PedFileSystem* fs; - program_name = argv[0]; + set_program_name (argv[0]); setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); |