summaryrefslogtreecommitdiffstats
path: root/debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:23:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:23:41 +0000
commit233be6e0bb85cd0320c198938f10c3443ca6d6c4 (patch)
treec8783175262d293c10e6eeba46a816ed310f9460 /debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch
parentMerging upstream version 2.40.1. (diff)
downloadutil-linux-233be6e0bb85cd0320c198938f10c3443ca6d6c4.tar.xz
util-linux-233be6e0bb85cd0320c198938f10c3443ca6d6c4.zip
Merging debian version 2.40.1-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch')
-rw-r--r--debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch b/debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch
deleted file mode 100644
index b1547cc..0000000
--- a/debian/patches/upstream/lslocks-remove-a-unused-local-variable.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From: Masatake YAMATO <yamato@redhat.com>
-Date: Sat, 13 Apr 2024 04:13:03 +0900
-Subject: lslocks: remove a unused local variable
-
-Signed-off-by: Masatake YAMATO <yamato@redhat.com>
-(cherry picked from commit c8c85e8e54aa201766f2420e2a7c86ccfa8d5df0)
----
- misc-utils/lslocks.c | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c
-index 60f6595..176173f 100644
---- a/misc-utils/lslocks.c
-+++ b/misc-utils/lslocks.c
-@@ -490,12 +490,11 @@ static int get_pid_locks(void *locks, void (*add_lock)(void *, struct lock *), s
- return rc;
- }
-
--static int get_pids_locks(void *locks, void (*add_lock)(void *, struct lock *))
-+static void get_pids_locks(void *locks, void (*add_lock)(void *, struct lock *))
- {
- DIR *dir;
- struct dirent *d;
- struct path_cxt *pc = NULL;
-- int rc = 0;
-
- pc = ul_new_path(NULL);
- if (!pc)
-@@ -526,7 +525,7 @@ static int get_pids_locks(void *locks, void (*add_lock)(void *, struct lock *))
- closedir(dir);
- ul_unref_path(pc);
-
-- return rc;
-+ return;
- }
-
- static int get_proc_locks(void *locks, void (*add_lock)(void *, struct lock *), void *fallback)