summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Webb <allenwebb@google.com>2021-03-23 15:42:17 -0500
committerCommit Bot <commit-bot@chromium.org>2021-03-29 20:54:21 +0000
commite6eba5ff08c60ab02aafb17e0101baaf7a381195 (patch)
treedb282c9ce76145a6894134ed1ff0da49845a5d6e
parent2978a012740b35b0476e926111102132ec6c0f6a (diff)
downloadadhd-e6eba5ff08c60ab02aafb17e0101baaf7a381195.tar.gz
client: Refactor of register_signal_handler.
Adds a missing parameter to a signal handler. BUG=None TEST=CQ passes Cq-Depend: chromium:2783043 Change-Id: I14678b9ce3a97d57420dd342d5b749be6bfe0b7f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2782855 Tested-by: Allen Webb <allenwebb@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Allen Webb <allenwebb@google.com>
-rw-r--r--cras/client/cras_tests/src/audio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cras/client/cras_tests/src/audio.rs b/cras/client/cras_tests/src/audio.rs
index 5ab22474..23018fd7 100644
--- a/cras/client/cras_tests/src/audio.rs
+++ b/cras/client/cras_tests/src/audio.rs
@@ -59,7 +59,7 @@ type Result<T> = std::result::Result<T, Error>;
static INTERRUPTED: AtomicBool = AtomicBool::new(false);
-extern "C" fn sigint_handler() {
+extern "C" fn sigint_handler(_: c_int) {
// Check if we've already received one SIGINT. If we have, the program may
// be misbehaving and not terminating, so to be safe we'll forcefully exit.
if INTERRUPTED.load(Ordering::Acquire) {