This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=8fb188d0af5c5a153c2881bb179711834c6d3941

commit 8fb188d0af5c5a153c2881bb179711834c6d3941
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Aug 7 21:11:03 2024 +0200

    libdpkg: Remove const from execname
    
    This variable is used as an intermediate pointer that we end up
    returning, and the function prototype returns a non-const pointer.
    
    Warned-by: gcc on NetBSD and OpenBSD
---
 lib/dpkg/execname.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpkg/execname.c b/lib/dpkg/execname.c
index b43ab9910..44044aac5 100644
--- a/lib/dpkg/execname.c
+++ b/lib/dpkg/execname.c
@@ -89,7 +89,7 @@ proc_get_psinfo(pid_t pid, struct psinfo *psinfo)
 char *
 dpkg_get_pid_execname(pid_t pid)
 {
-       const char *execname = NULL;
+       char *execname = NULL;
 #if defined(__linux__)
        char lname[32];
        char lcontents[_POSIX_PATH_MAX + 1];

-- 
Dpkg.Org's dpkg

Reply via email to