diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
| commit | b0afb8fe0ff1d87165af9df61501197a06240dda (patch) | |
| tree | 274ac6a96c53ef4c19ab4974ce24a06a233128c5 /gl/malloca.c | |
| parent | 68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff) | |
| download | monitoring-plugins-b0afb8fe0ff1d87165af9df61501197a06240dda.tar.gz | |
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/malloca.c')
| -rw-r--r-- | gl/malloca.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/malloca.c b/gl/malloca.c index e75c72df..4bce9a3d 100644 --- a/gl/malloca.c +++ b/gl/malloca.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Safe automatic memory allocation. | 1 | /* Safe automatic memory allocation. |
| 2 | Copyright (C) 2003, 2006-2007, 2009-2024 Free Software Foundation, Inc. | 2 | Copyright (C) 2003, 2006-2007, 2009-2025 Free Software Foundation, Inc. |
| 3 | Written by Bruno Haible <bruno@clisp.org>, 2003, 2018. | 3 | Written by Bruno Haible <bruno@clisp.org>, 2003, 2018. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| @@ -93,7 +93,7 @@ mmalloca (size_t n) | |||
| 93 | /* Out of memory. */ | 93 | /* Out of memory. */ |
| 94 | return NULL; | 94 | return NULL; |
| 95 | #else | 95 | #else |
| 96 | # if !MALLOC_0_IS_NONNULL | 96 | # if !HAVE_MALLOC_0_NONNULL |
| 97 | if (n == 0) | 97 | if (n == 0) |
| 98 | n = 1; | 98 | n = 1; |
| 99 | # endif | 99 | # endif |
| @@ -118,7 +118,7 @@ freea (void *p) | |||
| 118 | char *cp = p; | 118 | char *cp = p; |
| 119 | small_t *sp = p; | 119 | small_t *sp = p; |
| 120 | # if defined __CHERI_PURE_CAPABILITY__ | 120 | # if defined __CHERI_PURE_CAPABILITY__ |
| 121 | void *mem = sp[-1]; | 121 | void *mem = (void *) sp[-1]; |
| 122 | # else | 122 | # else |
| 123 | void *mem = cp - sp[-1]; | 123 | void *mem = cp - sp[-1]; |
| 124 | # endif | 124 | # endif |
