File: Use-const-struct-direct-in-file_select.patch

package info (click to toggle)
lmemory 0.6c-13.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,192 kB
  • sloc: sh: 4,797; ansic: 1,830; makefile: 37
file content (30 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gusnan@debian.org>
Date: Mon, 29 Jul 2024 14:55:22 +0200
Subject: Use const struct direct in file_select

---
 list.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/list.c b/list.c
index 65359cd..109b0d1 100644
--- a/list.c
+++ b/list.c
@@ -8,7 +8,7 @@
 
 
 /* local prototypes */
-int file_select (struct direct *entry);
+int file_select (const struct direct *entry);
 
 GSList *
 lmem_dir_list (GSList * file_list, gchar * directory_name)
@@ -56,7 +56,7 @@ lmem_dir_list (GSList * file_list, gchar * directory_name)
 }
 
 int
-file_select (struct direct *entry)
+file_select (const struct direct *entry)
 {				/* ignore . and .. entries */
   if ((strcmp (entry->d_name, ".") == 0) ||
       (strcmp (entry->d_name, "..") == 0))