mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
spa: small cleanups
Initialize result variable. Use strncpy to avoid warnings about using non-NULL terminaded strings.
This commit is contained in:
parent
15908328d1
commit
d0a2e6316b
7 changed files with 9 additions and 9 deletions
|
|
@ -110,7 +110,7 @@ static inline void nj2_session_params_hton(struct nj2_session_params *net,
|
|||
}
|
||||
|
||||
struct nj2_packet_header {
|
||||
char type[8]; /* packet type ('headr') */
|
||||
char type[8]; /* packet type ('header') */
|
||||
uint32_t data_type; /* 'a' for audio, 'm' for midi and 's' for sync */
|
||||
uint32_t data_stream; /* 's' for send, 'r' for return */
|
||||
uint32_t id; /* unique ID of the follower */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue