mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-09 08:21:08 -04:00
module-avb: utils: introduce array size for static arrays
This commit is contained in:
parent
cdf1ebe861
commit
8e135c1015
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||||
|
|
||||||
static inline char *avb_utils_format_id(char *str, size_t size, const uint64_t id)
|
static inline char *avb_utils_format_id(char *str, size_t size, const uint64_t id)
|
||||||
{
|
{
|
||||||
snprintf(str, size, "%02x:%02x:%02x:%02x:%02x:%02x:%04x",
|
snprintf(str, size, "%02x:%02x:%02x:%02x:%02x:%02x:%04x",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue