diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 20:23:50 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 20:23:50 +0100 |
| commit | 2baeb3acd2eceb65416f0837aa49196c6bfdf335 (patch) | |
| tree | 6749e1030c62edffa0781dbaa8ae0218b1814ae0 /set_error.c | |
| parent | fix doc (diff) | |
| download | liberror-1.1.2.tar.gz liberror-1.1.2.tar.bz2 liberror-1.1.2.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'set_error.c')
| -rw-r--r-- | set_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/set_error.c b/set_error.c index e7a16ac..839a027 100644 --- a/set_error.c +++ b/set_error.c @@ -33,7 +33,7 @@ liberror_set_error(const char description[256], const char source[64], const cha } else if (!strcmp(code_group, "h_errno")) { if (code >= (long long int)INT_MIN && code <= (long long int)INT_MAX) { saved_errno = errno; - errstr = hstrerror(code); + errstr = hstrerror((int)code); if (errstr) strncpy(error->description, errstr, sizeof(error->description)); errno = saved_errno; @@ -43,7 +43,7 @@ liberror_set_error(const char description[256], const char source[64], const cha strerror_r(errno, error->description, sizeof(error->description)); } else if (code >= (long long int)INT_MIN && code <= (long long int)INT_MAX) { saved_errno = errno; - errstr = gai_strerror(code); + errstr = gai_strerror((int)code); if (errstr) strncpy(error->description, errstr, sizeof(error->description)); errno = saved_errno; |
