From 8f2ee508a58c98d78b09cac257c06952bd7ec13f Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Thu, 13 Apr 2023 16:46:50 +0200 Subject: [PATCH] Remove accidential redeclaration --- touchpad-control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/touchpad-control.cpp b/touchpad-control.cpp index 4c87e37..e07ab7e 100644 --- a/touchpad-control.cpp +++ b/touchpad-control.cpp @@ -131,7 +131,7 @@ int set_touchpad_state(int enabled) { buffer[1] = 0x03; } - int result = ioctl(hidraw, HIDIOCSFEATURE(sizeof(buffer)/sizeof(buffer[0])), buffer); + result = ioctl(hidraw, HIDIOCSFEATURE(sizeof(buffer)/sizeof(buffer[0])), buffer); if (result < 0) { cerr << "send_events_handler(...): ioctl(...) on " << *it << " failed." << endl; result = EXIT_FAILURE;