summaryrefslogtreecommitdiffstats
path: root/ui/test
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-01-21 16:27:01 -0800
committerJeremy Kerr <jk@ozlabs.org>2009-02-01 11:54:25 +1100
commit2b42cdd35ccd83c52e9df257efdfcda040d170d9 (patch)
tree91e68ee0cdd988d2f8e60e557d59181cbd266a5a /ui/test
parent285059cfed1f7572f2a46ca1385f874642db3f17 (diff)
downloadtalos-petitboot-2b42cdd35ccd83c52e9df257efdfcda040d170d9.tar.gz
talos-petitboot-2b42cdd35ccd83c52e9df257efdfcda040d170d9.zip
Make client ops constant
Make the discover_client_ops args read-only. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/test')
-rw-r--r--ui/test/pb-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/test/pb-test.c b/ui/test/pb-test.c
index b6ff627..551c9b0 100644
--- a/ui/test/pb-test.c
+++ b/ui/test/pb-test.c
@@ -3,7 +3,7 @@
#include "ui/common/discover-client.h"
-static int print_device_add(struct device *device,
+static int print_device_add(const struct device *device,
void __attribute__((unused)) *arg)
{
struct boot_option *opt;
@@ -28,7 +28,8 @@ static int print_device_add(struct device *device,
return 0;
}
-static void print_device_remove(char *dev_id, void __attribute__((unused)) *arg)
+static void print_device_remove(const char *dev_id,
+ void __attribute__((unused)) *arg)
{
printf("removed device:\n");
printf("\tid: %s\n", dev_id);
OpenPOWER on IntegriCloud