summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-03-23 16:42:04 +0100
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-03-23 16:42:04 +0100
commitcfca84f25061c0b0e473cb1d91695c5979aa423e (patch)
treef1d8877b8dc62e839eccf687734f2875b56eaabe /tests
parentd19f7ec2f1c058fbc5b005af0c9bd2e5faa16085 (diff)
vt: fix callback enum type
We should use the enum type instead of plain "int" to be more verbose here. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_console.c4
-rw-r--r--tests/test_terminal.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_console.c b/tests/test_console.c
index fc8ba36..2a5f5ad 100644
--- a/tests/test_console.c
+++ b/tests/test_console.c
@@ -192,7 +192,9 @@ static void sig_term(struct ev_signal *sig, int signum, void *data)
terminate = 1;
}
-static bool vt_switch(struct kmscon_vt *vt, int action, void *data)
+static bool vt_switch(struct kmscon_vt *vt,
+ enum kmscon_vt_action action,
+ void *data)
{
struct console *con = data;
int ret;
diff --git a/tests/test_terminal.c b/tests/test_terminal.c
index 1015469..c9ccc22 100644
--- a/tests/test_terminal.c
+++ b/tests/test_terminal.c
@@ -139,7 +139,9 @@ static void activate_outputs(struct app *app)
}
}
-static bool vt_switch(struct kmscon_vt *vt, int action, void *data)
+static bool vt_switch(struct kmscon_vt *vt,
+ enum kmscon_vt_action action,
+ void *data)
{
struct app *app = data;
int ret;