Commit graph

21 commits

Author SHA1 Message Date
project-repo
d1ae07ef5a Adapt to 2024. 2024-01-01 01:07:15 +01:00
project-repo
d68c97cdc0 Fix infinite loop on 0-byte writes over IPC. 2023-04-25 18:39:38 +02:00
project-repo
b32659963c Fix SPDX-License-Identifier typo 2023-02-02 10:41:24 +01:00
Jan Beich
9ad7c921d6
Unbreak build on FreeBSD (#37)
* Disable POSIX compliance when using reallocarray

cagebreak.c:197:11: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration]
                        line = reallocarray(line, line_length, sizeof(char));
                               ^
cagebreak.c:197:9: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                        line = reallocarray(line, line_length, sizeof(char));
                             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipc_server.c:248:25: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration]
                client->read_buffer = reallocarray(client->read_buffer,
                                      ^
ipc_server.c:248:23: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                client->read_buffer = reallocarray(client->read_buffer,
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Promote -Wimplicit-function-declaration to -Werror

To help find bugs caused by _POSIX_C_SOURCE. Already errors in C++ and C23.

* Fix -Wstrict-prototypes, default in Clang >= 15

In file included from output.c:30:
keybinding.h:136:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
keybinding_list_init();
                    ^
                     void
output.c:335:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
empty_output_config() {
                   ^
                    void
In file included from seat.c:29:
input_manager.h:19:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
input_manager_create_empty_input_config();
                                       ^
                                        void
input_manager.c:92:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
input_manager_create_empty_input_config() {
                                       ^
                                        void
keybinding.c:129:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
keybinding_list_init() {
                    ^
                     void

See also
11da1b53d8
https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521
2023-01-09 17:20:24 +01:00
project-repo
48f3a749aa Adjust copyright/licenso info to SPDX standard and 2023 2023-01-07 23:37:06 +01:00
project-repo
d017f53a25 Apply clang-format 2023-01-06 19:10:48 +01:00
project-repo
3a66943513 Add option for disabling socket 2022-12-29 16:20:12 +01:00
project-repo
46f921f636 Merge ipc fixes into development 2022-12-28 15:58:37 +01:00
project-repo
f2ebea72de Fix ipc syntax 2022-12-28 15:03:37 +01:00
project-repo
ebbc3f2431 Adjust ipc
- Handle SIGPIPE
  - Change syntax to null-terminated strings
2022-12-28 14:40:09 +01:00
project-repo
29011ac792 Remove length restriction for ipc commands 2022-12-28 11:08:23 +01:00
project-repo
09a6886053 Restrict access to ipc socket
- Set 700 permissions on socket on startup
2022-09-25 11:34:17 +02:00
project-repo
586b6b5db0 Fix typo 2022-09-05 08:12:32 +02:00
project-repo
fd671ac2dd Apply clang-format 2021-12-25 15:38:31 +01:00
project-repo
aff1de892b Add support for event notifications over ipc 2021-12-25 15:35:31 +01:00
Cagebreak Signing Key 7
816fdeb953 Update year in copyright notices 2021-12-06 11:08:21 +01:00
Cagebreak Signing Key 1
816283cdb1 Apply clang-format 2020-05-25 20:13:33 +02:00
project-repo
8f9ed72201 Improve error handling 2020-05-25 17:45:19 +02:00
project-repo
f568f5379e Add error messaging to ipc 2020-05-23 09:16:18 +02:00
project-repo
5c0d68e2e5 Ameliorate ipc 2020-05-22 09:05:41 +02:00
project-repo
0017ad48c5 Add ipc capability 2020-05-21 23:04:45 +02:00