Found by -Wmissing-prototypes.
-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
#include "vlog.h"
#define THIS_MODULE VLM_fault
-void
+static void
fault_handler(int sig_nr)
{
VLOG_EMER("Caught signal %d.", sig_nr);
-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
static DH *tmp_dh_callback(SSL *ssl, int is_export UNUSED, int keylength);
static void log_ca_cert(const char *file_name, X509 *cert);
-short int
+static short int
want_to_poll_events(int want)
{
switch (want) {
* in '*n_certs', and returns a positive errno value.
*
* The caller is responsible for freeing '*certs'. */
-int
+static int
read_cert_file(const char *file_name, X509 ***certs, size_t *n_certs)
{
FILE *file;
}
}
-void
+static void
shuffle(int *p, size_t n)
{
for (; n > 1; n--, p++) {
return 0;
}
-void
+static void
output_packet(struct datapath *dp, struct ofpbuf *buffer, uint16_t out_port)
{
struct sw_port *p = lookup_port(dp, out_port);
-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
#include "util.h"
#include "vlog-socket.h"
-void
+static void
usage(char *prog_name, int exit_code)
{
printf("Usage: %s [TARGET] [ACTION...]\n"
-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
return 0;
}
-int
+static int
brc_handle_dp_cmd(struct ofpbuf *buffer, bool add)
{
int dp_act_err;
[BRC_GENL_A_PORT_NAME] = { .type = NL_A_STRING },
};
-int
+static int
brc_handle_port_cmd(struct ofpbuf *buffer, bool add)
{
struct nlattr *attrs[ARRAY_SIZE(brc_port_policy)];
return 0;
}
-int
+static int
brc_recv_update(void)
{
int retval;
static void bridge_get_all_ifaces(const struct bridge *, struct svec *ifaces);
static bool bridge_is_backlogged(const struct bridge *);
static int bridge_fetch_dp_ifaces(struct bridge *, struct svec *iface_names);
+static void bridge_flush(struct bridge *);
static void bridge_process_msg(struct bridge *, struct ofpbuf *);
static void revalidate_flow(struct bridge *, struct ft_flow *);
/* Forces 'br' to revalidate all of its flows. This is appropriate when 'br''s
* configuration changes. */
-void
+static void
bridge_flush(struct bridge *br)
{
br->flush = true;