diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-10 06:53:22 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-10 06:53:22 +0000 |
commit | f4f92be60c94fd4e0dd4b2b4b3101543eedb706a (patch) | |
tree | 28d25bd0ab624d82435823c940a186370947ad4d /plugins/check_disk.c | |
parent | cbf702f51f839af5a8e9c66bdae7d6a3dc363ace (diff) | |
download | monitoring-plugins-f4f92be60c94fd4e0dd4b2b4b3101543eedb706a.tar.gz |
the last round of pedantic compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@676 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r-- | plugins/check_disk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 7974d141..c8cfecd2 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -237,8 +237,8 @@ process_arguments (int argc, char **argv) unsigned long l; - int option_index = 0; - static struct option long_options[] = { + int option = 0; + static struct option longopts[] = { {"timeout", required_argument, 0, 't'}, {"warning", required_argument, 0, 'w'}, {"critical", required_argument, 0, 'c'}, @@ -274,7 +274,7 @@ process_arguments (int argc, char **argv) strcpy (argv[c], "-t"); while (1) { - c = getopt_long (argc, argv, "+?VqhveCt:c:w:u:p:x:X:mklM", long_options, &option_index); + c = getopt_long (argc, argv, "+?VqhveCt:c:w:u:p:x:X:mklM", longopts, &option); if (c == -1 || c == EOF) break; @@ -363,7 +363,7 @@ process_arguments (int argc, char **argv) break; case 'p': /* select path */ se = (struct name_list *) malloc (sizeof (struct name_list)); - se->name = strdup (optarg); + se->name = optarg; se->name_next = NULL; se->w_df = w_df; se->c_df = c_df; @@ -374,14 +374,14 @@ process_arguments (int argc, char **argv) break; case 'x': /* exclude path or partition */ se = (struct name_list *) malloc (sizeof (struct name_list)); - se->name = strdup (optarg); + se->name = optarg; se->name_next = NULL; *dptail = se; dptail = &se->name_next; break; case 'X': /* exclude file system type */ se = (struct name_list *) malloc (sizeof (struct name_list)); - se->name = strdup (optarg); + se->name = optarg; se->name_next = NULL; *fstail = se; fstail = &se->name_next; |