summaryrefslogtreecommitdiffstats
path: root/ui/test/pb-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/test/pb-test.c')
-rw-r--r--ui/test/pb-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/test/pb-test.c b/ui/test/pb-test.c
index 5f021ff..b6ff627 100644
--- a/ui/test/pb-test.c
+++ b/ui/test/pb-test.c
@@ -3,7 +3,8 @@
#include "ui/common/discover-client.h"
-static int print_device_add(struct device *device)
+static int print_device_add(struct device *device,
+ void __attribute__((unused)) *arg)
{
struct boot_option *opt;
@@ -27,13 +28,13 @@ static int print_device_add(struct device *device)
return 0;
}
-static void print_device_remove(char *dev_id)
+static void print_device_remove(char *dev_id, void __attribute__((unused)) *arg)
{
printf("removed device:\n");
printf("\tid: %s\n", dev_id);
}
-struct discover_client_ops client_ops = {
+static struct discover_client_ops client_ops = {
.add_device = print_device_add,
.remove_device = print_device_remove,
};
OpenPOWER on IntegriCloud