mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +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
|
bool
|
||||||
i3_send_pkg(int sock, int cmd, char *data)
|
i3_send_pkg(int sock, int cmd, char *data)
|
||||||
{
|
{
|
||||||
size_t size = data != NULL ? strlen(data) : 0;
|
const size_t size = data != NULL ? strlen(data) : 0;
|
||||||
i3_ipc_header_t hdr = {
|
const i3_ipc_header_t hdr = {
|
||||||
.magic = I3_IPC_MAGIC,
|
.magic = I3_IPC_MAGIC,
|
||||||
.size = size,
|
.size = size,
|
||||||
.type = cmd
|
.type = cmd
|
||||||
|
|
Loading…
Add table
Reference in a new issue