[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-cpio] [PATCH] build: lint warnings in --device-independent
From: |
Pavel Raiskup |
Subject: |
[Bug-cpio] [PATCH] build: lint warnings in --device-independent |
Date: |
Mon, 6 Feb 2017 09:47:46 +0100 |
Complements: 3945f9db44c935608caa5f0
* src/util.c (find_inode_val): Drop unused variable.
(get_inode_and_dev): Function doesn't return any value, drop the
return value in definition.
---
src/util.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/util.c b/src/util.c
index f9cc5c3..d78d576 100644
--- a/src/util.c
+++ b/src/util.c
@@ -718,7 +718,6 @@ find_inode_val (ino_t node_num, unsigned long major_num,
unsigned long minor_num)
{
struct inode_val sample;
- struct inode_val *ival;
if (!hash_table)
return NULL;
@@ -768,7 +767,7 @@ add_inode (ino_t node_num, char *file_name, unsigned long
major_num,
return e;
}
-static ino_t
+static void
get_inode_and_dev (struct cpio_file_stat *hdr, struct stat *st)
{
if (renumber_inodes_option)
--
2.9.3
- [Bug-cpio] [PATCH] build: lint warnings in --device-independent,
Pavel Raiskup <=