Skip to content
Snippets Groups Projects
  1. Aug 02, 2023
    • Simon McVittie's avatar
      capture-libs: Use warnx() instead of warn() when errno is not set · 6ff340cb
      Simon McVittie authored
      
      `warn(fmt, args)` is equivalent to (pseudocode)
      `warnx(fmt + ": %s", args, strerror(errno))`. In contexts where we do
      not have a useful value for errno, or where we are showing an error
      message that should already contain a previous result of strerror, we
      should use warnx() instead. This avoids showing a misleading errno
      which might have been set for some unrelated reason.
      
      Prompted by jupiter/tasks#887.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      6ff340cb
  2. Aug 01, 2023
  3. Jul 27, 2023
  4. Oct 06, 2022
  5. Jun 23, 2022
  6. Jun 22, 2022
  7. Oct 26, 2021
  8. Oct 25, 2021
  9. Sep 06, 2021
  10. Aug 31, 2021
    • Ludovico de Nittis's avatar
      capsule-wrappers: Avoid the deprecated mallinfo() when possible · 2cd84648
      Ludovico de Nittis authored
      
      mallinfo() has been deprecated since glibc 2.33 and has been replaced
      with mallinfo2().
      
      Building libcapsule with glibc 2.33 fails with the following error:
      ```
      capsule/capsule-wrappers.c: In function ‘address_within_main_heap’:
      capsule/capsule-wrappers.c:323:20: error: ‘mallinfo’ is deprecated
      [-Werror=deprecated-declarations]
        323 |             struct mallinfo mi = mallinfo();
            |                    ^~~~~~~~
      In file included from capsule/capsule-wrappers.c:16:
      /usr/include/malloc.h:118:24: note: declared here
      118 | extern struct mallinfo mallinfo (void) __THROW
      __MALLOC_DEPRECATED;
            |                        ^~~~~~~~
      cc1: all warnings being treated as errors
      ```
      
      To fix that we try to use the newer mallinfo2(), if it is available.
      
      Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
      2cd84648
  11. Jul 28, 2021
  12. Jul 02, 2021
  13. Jan 18, 2021
  14. Jan 14, 2021
  15. Jan 12, 2021
  16. Jan 11, 2021
  17. Jan 04, 2021
  18. Nov 25, 2020
  19. Nov 20, 2020
Loading