[monitoring-plugins] check_disk: remove unused variables

Jan Wagner <[email protected]>
Newsgroups gmane.network.nagios.cvs
Message-ID <20161107221012.1D37F2008465__39758.7476800711$1478556632$gmane$org@orwell.monitoring-plugins.org>
    Module: monitoring-plugins
    Branch: master
    Commit: 81b33d45141cb45a7941c2c1f29330f276d0e14e
    Author: Sebastian Herbszt <[email protected]>
 Committer: Jan Wagner <[email protected]>
      Date: Sat Dec 20 20:51:44 2014 +0100
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=81b33d4

check_disk: remove unused variables

Remove unused variables.

Signed-off-by: Sebastian Herbszt <[email protected]>

---

 plugins/check_disk.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index eb573f5..d37cc3a 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -61,9 +61,6 @@ const char *email = "[email protected]";
 # define ERROR -1
 #endif
 
-/* If nonzero, show inode information. */
-static int inode_format = 1;
-
 /* If nonzero, show even filesystems with zero size or
    uninteresting types. */
 static int show_all_fs = 1;
@@ -182,7 +179,7 @@ main (int argc, char **argv)
   int temp_result;
 
   struct mount_entry *me;
-  struct fs_usage fsp, tmpfsp;
+  struct fs_usage fsp;
   struct parameter_list *temp_list, *path;
 
 #ifdef __CYGWIN__
@@ -427,9 +424,7 @@ process_arguments (int argc, char **argv)
   int c, err;
   struct parameter_list *se;
   struct parameter_list *temp_list = NULL, *previous = NULL;
-  struct parameter_list *temp_path_select_list = NULL;
-  struct mount_entry *me, *temp_me;
-  int result = OK;
+  struct mount_entry *me;
   regex_t re;
   int cflags = REG_NOSUB | REG_EXTENDED;
   int default_cflags = cflags;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.