Linux bluetooth development
 help / color / mirror / Atom feed
* [bluez/bluez] 7ffffa: all: Remove more unneeded MIN/MAX macro definition
@ 2026-05-06 10:06 hadess
  0 siblings, 0 replies; only message in thread
From: hadess @ 2026-05-06 10:06 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/1090349
  Home:   https://github.com/bluez/bluez
  Commit: 7ffffa83a1d73a2e3a2236a441ed7bd2b7ffa611
      https://github.com/bluez/bluez/commit/7ffffa83a1d73a2e3a2236a441ed7bd2b7ffa611
  Author: Bastien Nocera <hadess@hadess.net>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M lib/bluetooth/hci.c
    M src/main.c
    M src/shared/gatt-server.c

  Log Message:
  -----------
  all: Remove more unneeded MIN/MAX macro definition


  Commit: feebce7236870c9c6ef782e59c61c110ddd2d785
      https://github.com/bluez/bluez/commit/feebce7236870c9c6ef782e59c61c110ddd2d785
  Author: Bastien Nocera <hadess@hadess.net>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M src/shared/util.h

  Log Message:
  -----------
  shared/util: Add helper for "cleanup" variable attribute

Use the widespread "cleanup" variable attribute:
https://gcc.gnu.org/onlinedocs/gcc/Common-Attributes.html#index-cleanup

It is implemented by both GCC and clang on platforms where bluez is
used, and can help reduce memory leaks, while improving readability.

See also:
https://systemd.io/CODING_STYLE/#memory-allocation
https://docs.gtk.org/glib/auto-cleanup.html


  Commit: bdb11f70c15bee5a5deb37c011797ef2500f5eb2
      https://github.com/bluez/bluez/commit/bdb11f70c15bee5a5deb37c011797ef2500f5eb2
  Author: Bastien Nocera <hadess@hadess.net>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M doc/maintainer-guidelines.rst

  Log Message:
  -----------
  doc: Recommend using _cleanup_ and friends


  Commit: 5984b16421ae28dc1c0fe2dfe1c5e9ccf78be055
      https://github.com/bluez/bluez/commit/5984b16421ae28dc1c0fe2dfe1c5e9ccf78be055
  Author: Bastien Nocera <hadess@hadess.net>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M src/main.c

  Log Message:
  -----------
  main: Use _cleanup_() to simplify configuration parsing

Makes dealing with the error path easier.


  Commit: 036ef74099d88226fd820a29fd70f732ec06aaba
      https://github.com/bluez/bluez/commit/036ef74099d88226fd820a29fd70f732ec06aaba
  Author: Bastien Nocera <hadess@hadess.net>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M src/main.c

  Log Message:
  -----------
  main: Use _cleanup_() to simplify GError-handling

Use _cleanup_() to simplify GError-handling in the error paths.


Compare: https://github.com/bluez/bluez/compare/7ffffa83a1d7%5E...036ef74099d8

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-06 10:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 10:06 [bluez/bluez] 7ffffa: all: Remove more unneeded MIN/MAX macro definition hadess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox