mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 04:15:39 +02:00
module/i3-common: const:ify
This commit is contained in:
parent
92319714c7
commit
6df68f1c23
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ i3_get_socket_address(struct sockaddr_un *addr)
|
|||
bool
|
||||
i3_send_pkg(int sock, int cmd, char *data)
|
||||
{
|
||||
size_t size = data != NULL ? strlen(data) : 0;
|
||||
i3_ipc_header_t hdr = {
|
||||
const size_t size = data != NULL ? strlen(data) : 0;
|
||||
const i3_ipc_header_t hdr = {
|
||||
.magic = I3_IPC_MAGIC,
|
||||
.size = size,
|
||||
.type = cmd
|
||||
|
|
Loading…
Add table
Reference in a new issue