summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2009-02-01 11:19:19 +1100
committerJeremy Kerr <jk@ozlabs.org>2009-02-01 11:19:19 +1100
commit61679084243c471053b0b1b9865b40d721586958 (patch)
treee7e2784dd64a86ed413fe65301fb31bf071123b7 /discover
parent9793f862467407e83aa5b5a2cc35c25de9bae17b (diff)
downloadtalos-petitboot-61679084243c471053b0b1b9865b40d721586958.tar.gz
talos-petitboot-61679084243c471053b0b1b9865b40d721586958.zip
Fix unused parameter warnings
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c3
-rw-r--r--discover/discover-server.c3
-rw-r--r--discover/kboot-parser.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 8d3e877..7e5819c 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -53,7 +53,8 @@ static struct device device = {
.icon_file = "meep.png",
};
-int device_handler_get_current_devices(struct device_handler *handler,
+int device_handler_get_current_devices(
+ struct device_handler *handler __attribute__((unused)),
struct device **devices)
{
diff --git a/discover/discover-server.c b/discover/discover-server.c
index 8d72838..b2025cc 100644
--- a/discover/discover-server.c
+++ b/discover/discover-server.c
@@ -76,7 +76,8 @@ static void print_clients(struct discover_server *server)
client->fd);
}
-static int client_write_message(struct discover_server *server,
+static int client_write_message(
+ struct discover_server *server __attribute__((unused)),
struct client *client, struct pb_protocol_message *message)
{
int rc;
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index f8cd61d..7124561 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -117,7 +117,9 @@ static int check_for_global_option(struct kboot_context *ctx,
return 0;
}
-static char *get_global_option(struct kboot_context *ctx, const char *name)
+static char *get_global_option(
+ struct kboot_context *ctx __attribute__((unused)),
+ const char *name)
{
int i;
OpenPOWER on IntegriCloud