diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-05-04 13:58:10 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-05-16 13:40:47 -0700 |
| commit | d3d8f1f7e51c1808471e081c46ec631af7375272 (patch) | |
| tree | ed6845fa3831edbd99dc9c36be3351ffc6ff09c2 /ovsdb | |
| parent | 805e8f4e2723cc0849bdb17fb81665ea4515fa45 (diff) | |
| download | openvswitch-d3d8f1f7e51c1808471e081c46ec631af7375272.tar.gz | |
Add missing "static" keywords.
Found by sparse.
Diffstat (limited to 'ovsdb')
| -rw-r--r-- | ovsdb/execution.c | 12 | ||||
| -rw-r--r-- | ovsdb/jsonrpc-server.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 708cc60dd..176858240 100644 --- a/ovsdb/execution.c +++ b/ovsdb/execution.c @@ -200,7 +200,7 @@ exit: return results; } -struct ovsdb_error * +static struct ovsdb_error * ovsdb_execute_commit(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct json *result OVS_UNUSED) { @@ -270,7 +270,7 @@ parse_row(const struct json *json, const struct ovsdb_table *table, } } -struct ovsdb_error * +static struct ovsdb_error * ovsdb_execute_insert(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct json *result) { @@ -341,7 +341,7 @@ ovsdb_execute_insert(struct ovsdb_execution *x, struct ovsdb_parser *parser, return error; } -struct ovsdb_error * +static struct ovsdb_error * ovsdb_execute_select(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct json *result) { @@ -408,7 +408,7 @@ update_row_cb(const struct ovsdb_row *row, void *ur_) return true; } -struct ovsdb_error * +static struct ovsdb_error * ovsdb_execute_update(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct json *result) { @@ -465,7 +465,7 @@ mutate_row_cb(const struct ovsdb_row *row, void *mr_) return true; } -struct ovsdb_error * +static struct ovsdb_error * ovsdb_execute_mutate(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct json *result) { @@ -522,7 +522,7 @@ delete_row_cb(const struct ovsdb_row *row, void *dr_) return true; } -struct ovsdb_error * +static struct ovsdb_error * ovsdb_execute_delete(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct json *result) { diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index fc9c60478..379fc524d 100644 --- a/ovsdb/jsonrpc-server.c +++ b/ovsdb/jsonrpc-server.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010 Nicira Networks +/* Copyright (c) 2009, 2010, 2011 Nicira Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ struct ovsdb_jsonrpc_remote; struct ovsdb_jsonrpc_session; /* Message rate-limiting. */ -struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); +static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); /* Sessions. */ static struct ovsdb_jsonrpc_session *ovsdb_jsonrpc_session_create( |
