summaryrefslogtreecommitdiff
path: root/partprobe
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-05 09:23:51 +0200
committerJim Meyering <meyering@redhat.com>2008-06-05 09:23:51 +0200
commit61ca18819ebe630f48564575a796ebcfac5ea957 (patch)
tree4ebc329c4b23367fd2070ef661fda25ff1abf4b8 /partprobe
parent8d0af5e95b8d4beb947bda15f232085b1d6f3cbb (diff)
downloadparted-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 'partprobe')
-rw-r--r--partprobe/partprobe.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/partprobe/partprobe.c b/partprobe/partprobe.c
index d324167..75f7399 100644
--- a/partprobe/partprobe.c
+++ b/partprobe/partprobe.c
@@ -1,6 +1,6 @@
/*
partprobe - informs the OS kernel of partition layout
- Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 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
@@ -34,6 +34,7 @@
#include "closeout.h"
#include "configmake.h"
+#include "progname.h"
#include "version-etc.h"
#include <locale.h>
@@ -66,9 +67,6 @@ static struct option const long_options[] =
{NULL, 0, NULL, 0}
};
-
-char *program_name;
-
/* initialized to 0 according to the language lawyers */
static int opt_no_inform;
static int opt_summary;
@@ -163,7 +161,7 @@ main (int argc, char* argv[])
{
int status = 0;
- program_name = argv[0];
+ set_program_name (argv[0]);
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);