summaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index f7f2251..97c3c55 100644
--- a/utils.c
+++ b/utils.c
@@ -210,12 +210,15 @@ int is_interactive_governor(char* governor) {
return 0;
}
+#ifndef INTERACTION_BOOST
+void interaction(int UNUSED(duration), int UNUSED(num_args), int UNUSED(opt_list[]))
+{
+#else
void interaction(int duration, int num_args, int opt_list[])
{
-#ifdef INTERACTION_BOOST
static int lock_handle = 0;
- if (duration < 0 || num_args < 1 || opt_list[0] == NULL)
+ if (duration < 0 || num_args < 1 || opt_list[0] == 0)
return;
if (qcopt_handle) {
@@ -230,7 +233,7 @@ void interaction(int duration, int num_args, int opt_list[])
int interaction_with_handle(int lock_handle, int duration, int num_args, int opt_list[])
{
- if (duration < 0 || num_args < 1 || opt_list[0] == NULL)
+ if (duration < 0 || num_args < 1 || opt_list[0] == 0)
return 0;
if (qcopt_handle) {