summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c2
-rw-r--r--discover/discover-server.c1
-rw-r--r--discover/log.c1
-rw-r--r--discover/log.h3
-rw-r--r--discover/paths.c2
-rw-r--r--discover/pb-discover.c2
6 files changed, 7 insertions, 4 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index c7e0227..8d3e877 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -377,7 +377,7 @@ int device_handler_event(struct device_handler *handler,
struct device_handler *device_handler_init(struct discover_server *server)
{
struct device_handler *handler;
- int i;
+ unsigned int i;
handler = talloc(NULL, struct device_handler);
handler->devices = NULL;
diff --git a/discover/discover-server.c b/discover/discover-server.c
index 8ec1949..8d72838 100644
--- a/discover/discover-server.c
+++ b/discover/discover-server.c
@@ -18,6 +18,7 @@
#include "log.h"
#include "waiter.h"
#include "device-handler.h"
+#include "discover-server.h"
struct discover_server {
int socket;
diff --git a/discover/log.c b/discover/log.c
index 189f31e..e006fd0 100644
--- a/discover/log.c
+++ b/discover/log.c
@@ -1,6 +1,5 @@
#include <stdarg.h>
-#include <stdio.h>
#include "log.h"
diff --git a/discover/log.h b/discover/log.h
index 7f9b01f..3e92555 100644
--- a/discover/log.h
+++ b/discover/log.h
@@ -1,6 +1,9 @@
#ifndef _LOG_H
#define _LOG_H
+#include <stdio.h>
+
void pb_log(const char *fmt, ...);
+void pb_log_set_stream(FILE *stream);
#endif /* _LOG_H */
diff --git a/discover/paths.c b/discover/paths.c
index 72d07b2..5b550fa 100644
--- a/discover/paths.c
+++ b/discover/paths.c
@@ -35,7 +35,7 @@ const char *mount_base(void)
char *encode_label(void *alloc_ctx, const char *label)
{
char *str, *c;
- int i;
+ unsigned int i;
/* the label can be expanded by up to four times */
str = talloc_size(alloc_ctx, strlen(label) * 4 + 1);
diff --git a/discover/pb-discover.c b/discover/pb-discover.c
index 024cb30..56602d9 100644
--- a/discover/pb-discover.c
+++ b/discover/pb-discover.c
@@ -10,7 +10,7 @@
static int running;
-void sigint_handler(int signum)
+static void sigint_handler(int __attribute__((unused)) signum)
{
running = 0;
}
OpenPOWER on IntegriCloud