]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: remove write-only variables
authorEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
Fixes sparse warnings about this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
copy/xfs_copy.c
libfrog/linux.c
libxfs/init.h

index a7b46566c3f21ceb99cd1d22cc44a692678e6ee3..bc73bb4bf8431380bd3f9b8d26b3d98289a3ff61 100644 (file)
@@ -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;
index 46f15d6c12ebe38a7cca68e91a6558c0f496063e..fc9f3ac3b56e1f16eb0a0cf1f119ba8481782fe6 100644 (file)
@@ -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;
 
index 2c3cd918bc498e588ad556e32141b5c86714b929..e0b50911389cbb6a847e9dd5c2b01b1ee1fda9ac 100644 (file)
@@ -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 */