diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-04-29 11:45:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-29 11:45:07 +0200 |
commit | e4196edfbf8edcee8771be5a71b69c95ea63d604 (patch) | |
tree | 950d63b2e077d725fce5a9a6f7edd8a40e3565a4 | |
parent | e0a24179c0cd874aa901ff618c64041f851537ef (diff) |
parse-util: fix conversion from size_t on s390 (#3147)
On s390 size_t is an unsigned long, nor 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.
Fixes: 7c2da2ca8
-rw-r--r-- | src/basic/parse-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/parse-util.h b/src/basic/parse-util.h index c407263e16..7dc579a159 100644 --- a/src/basic/parse-util.h +++ b/src/basic/parse-util.h @@ -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) { |