From 73ab3f6818f79ff2d9f78914ef192b2ded51fab4 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 9 Oct 2018 11:49:47 -0500 Subject: [PATCH] xfsprogs: remove write-only variables Fixes sparse warnings about this. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- copy/xfs_copy.c | 3 --- libfrog/linux.c | 1 - libxfs/init.h | 1 - 3 files changed, 5 deletions(-) diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c index a7b46566c..bc73bb4bf 100644 --- a/copy/xfs_copy.c +++ b/copy/xfs_copy.c @@ -39,7 +39,6 @@ target_control *target; wbuf w_buf; wbuf btree_buf; -pid_t parent_pid; unsigned int kids; thread_control glob_masks; @@ -631,8 +630,6 @@ main(int argc, char **argv) target[i].err_type = 0; } - parent_pid = getpid(); - /* open up source -- is it a file? */ open_flags = O_RDONLY; diff --git a/libfrog/linux.c b/libfrog/linux.c index 46f15d6c1..fc9f3ac3b 100644 --- a/libfrog/linux.c +++ b/libfrog/linux.c @@ -12,7 +12,6 @@ #include "libxfs_priv.h" #include "xfs_fs.h" -int platform_has_uuid = 1; extern char *progname; static int max_block_alignment; diff --git a/libxfs/init.h b/libxfs/init.h index 2c3cd918b..e0b509113 100644 --- a/libxfs/init.h +++ b/libxfs/init.h @@ -19,6 +19,5 @@ extern char *platform_findblockpath (char *path); extern int platform_direct_blockdev (void); extern int platform_align_blockdev (void); extern unsigned long platform_physmem(void); /* in kilobytes */ -extern int platform_has_uuid; #endif /* LIBXFS_INIT_H */ -- 2.50.1