diff options
-rw-r--r-- | lib9p/core_gen/h.py | 1 | ||||
-rw-r--r-- | lib9p/core_include/lib9p/_core_generated.h | 1 | ||||
-rw-r--r-- | lib9p/srv.c | 2 | ||||
-rw-r--r-- | libcr_ipc/tests/test_chan.c | 1 | ||||
-rw-r--r-- | libmisc/intercept.c | 2 | ||||
-rw-r--r-- | libusb/usb_common.c | 2 |
6 files changed, 3 insertions, 6 deletions
diff --git a/lib9p/core_gen/h.py b/lib9p/core_gen/h.py index acf8415..c7c832b 100644 --- a/lib9p/core_gen/h.py +++ b/lib9p/core_gen/h.py @@ -162,7 +162,6 @@ def gen_h(versions: set[str], typs: list[idl.UserType]) -> str: #ifndef _LIB9P_CORE_H_ \t#error Do not include <lib9p/_core_generated.h> directly; include <lib9p/core.h> instead #endif - """ id2typ: dict[int, idl.Message] = {} for msg in [msg for msg in typs if isinstance(msg, idl.Message)]: diff --git a/lib9p/core_include/lib9p/_core_generated.h b/lib9p/core_include/lib9p/_core_generated.h index 5b9a67d..d1ecd6e 100644 --- a/lib9p/core_include/lib9p/_core_generated.h +++ b/lib9p/core_include/lib9p/_core_generated.h @@ -4,7 +4,6 @@ #error Do not include <lib9p/_core_generated.h> directly; include <lib9p/core.h> instead #endif - /* config *********************************************************************/ #include "config.h" diff --git a/lib9p/srv.c b/lib9p/srv.c index bde77eb..56fc3ec 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -738,7 +738,7 @@ static void handle_Tversion(struct srv_req *ctx, if (req->max_msg_size < min_msg_size) { lib9p_error(&ctx->basectx, LIB9P_ERRNO_L_EDOM, "requested max_msg_size is less than minimum for ", lib9p_version_str(version), - " (", req->max_msg_size, " < ", min_msg_size,")"); + " (", req->max_msg_size, " < ", min_msg_size, ")"); goto tversion_return; } diff --git a/libcr_ipc/tests/test_chan.c b/libcr_ipc/tests/test_chan.c index a6eba82..759c2b1 100644 --- a/libcr_ipc/tests/test_chan.c +++ b/libcr_ipc/tests/test_chan.c @@ -22,7 +22,6 @@ COROUTINE producer_cr(void *_ch) { cr_chan_send(ch, 2); - cr_end(); } diff --git a/libmisc/intercept.c b/libmisc/intercept.c index 30870bf..d0e3602 100644 --- a/libmisc/intercept.c +++ b/libmisc/intercept.c @@ -11,7 +11,7 @@ [[gnu::weak]] void __lm_putchar(unsigned char c) { - (void) putchar(c); + (void)putchar(c); } [[gnu::weak]] diff --git a/libusb/usb_common.c b/libusb/usb_common.c index 9b222d6..4fe7dd4 100644 --- a/libusb/usb_common.c +++ b/libusb/usb_common.c @@ -184,7 +184,7 @@ uint8_t const *tud_descriptor_device_cb(void) { .bNumConfigurations = 0, /* Number of possible configurations */ }; desc.bNumConfigurations = globals.configc; - return (uint8_t const *) &desc; + return (uint8_t const *)&desc; } /** |