[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/41] libps: Silence a warning
From: |
Sergey Bugaev |
Subject: |
[PATCH 12/41] libps: Silence a warning |
Date: |
Tue, 9 May 2023 00:31:07 +0300 |
GCC was complaining about the mismatch in types between the 'fn' pointer
and the function pointers assigned to it. Since fn is meant to be used
with different function types, represent it as a 'void *' and not a
pointer to any particular function type.
---
libps/ps.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libps/ps.h b/libps/ps.h
index 192847b5..3e59c66a 100644
--- a/libps/ps.h
+++ b/libps/ps.h
@@ -535,7 +535,7 @@ struct ps_getter
/* A function that will get the value; the protocol between this function
and its caller is type-dependent. */
- void (*fn) (void);
+ void *fn;
};
/* Access macros: */
--
2.40.1
- Re: [PATCH 01/41] libshouldbeinlibc: Port to x86_64, (continued)
- [PATCH 03/41] libiohelp: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 04/41] libfshelp: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 06/41] libtrivfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 09/41] libstore: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 05/41] libfshelp-tests: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 07/41] libnetfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 13/41] libmachdev: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 08/41] libdiskfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 10/41] libpipe: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 12/41] libps: Silence a warning,
Sergey Bugaev <=
- [PATCH 11/41] libps: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 32/41] tmpfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 29/41] pflocal: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 14/41] utils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 17/41] proc: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 16/41] auth: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 26/41] boot: Fix use-after-realloc, Sergey Bugaev, 2023/05/08