commit 2ba4b9af07106cfc539c01ea596bb350aa8b4f9b
parent 26603abf135222a35962e8d681106744ced38f17
Author: kolunmi <kolunmi@tutanota.com>
Date: Wed, 15 Feb 2023 19:09:41 -0700
fix some stylistic inconsistencies
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dwlb.c b/dwlb.c
@@ -595,11 +595,11 @@ static void
handle_global(void *data, struct wl_registry *registry,
uint32_t name, const char *interface, uint32_t version)
{
- if (strcmp(interface, wl_compositor_interface.name) == 0) {
+ if (!strcmp(interface, wl_compositor_interface.name)) {
compositor = wl_registry_bind(registry, name, &wl_compositor_interface, 4);
- } else if (strcmp(interface, wl_shm_interface.name) == 0) {
+ } else if (!strcmp(interface, wl_shm_interface.name)) {
shm = wl_registry_bind(registry, name, &wl_shm_interface, 1);
- } else if (strcmp(interface, wl_output_interface.name) == 0) {
+ } else if (!strcmp(interface, wl_output_interface.name)) {
Bar *b = malloc(sizeof(Bar));
if (!b)
CLEANUP_EDIE("malloc");
@@ -609,9 +609,9 @@ handle_global(void *data, struct wl_registry *registry,
DL_APPEND(bars, b);
if (ready)
setup_bar(b);
- } else if (strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) {
+ } else if (!strcmp(interface, zwlr_layer_shell_v1_interface.name)) {
layer_shell = wl_registry_bind(registry, name, &zwlr_layer_shell_v1_interface, 1);
- } else if (strcmp(interface, zxdg_output_manager_v1_interface.name) == 0) {
+ } else if (!strcmp(interface, zxdg_output_manager_v1_interface.name)) {
output_manager = wl_registry_bind(registry, name, &zxdg_output_manager_v1_interface, 2);
}
}