mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 15:50:36 +01:00
systemd: fix conversion from size_t on s390
On s390 size_t is an unsigned long, not an unsigned int. They both are of the same size and can be cast to each other safely, but the compiler still seems unhappy about incompatible pointers. https://github.com/systemd/systemd/pull/3147
This commit is contained in:
parent
76844c65d6
commit
eafa6f725b
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ static inline int safe_atoli(const char *s, long int *ret_u) {
|
|||
#if SIZE_MAX == UINT_MAX
|
||||
static inline int safe_atozu(const char *s, size_t *ret_u) {
|
||||
assert_cc(sizeof(size_t) == sizeof(unsigned));
|
||||
return safe_atou(s, ret_u);
|
||||
return safe_atou(s, (unsigned *) ret_u);
|
||||
}
|
||||
#else
|
||||
static inline int safe_atozu(const char *s, size_t *ret_u) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue