tabled: make unnecesserily global functions static
PATCH 5/7 tabled: make unnecesserily global functions static
Signed-off-by Pete Zaitcev <[email protected]>
--- server/object.c | 9 +++++---- server/server.c | 4 ++-- server/status.c | 2 +- server/tdbadm.c | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-)
commit f21ca8985bc7ba2b6e02fb0e58c79bcb96ab844f
Author: Pete Zaitcev <[email protected]> Date: Thu Apr 1 19:17:38 2010 -0600
Add a bunch of statics.
server/object.c +5 -4
@@ -765,8 +765,9 @@ err:return -1 ; } -bool object_put_body (struct client *cli,const char *user,const char *bucket, -const char *key,long content_len,bool expect_cont) +static bool object_put_body (struct client *cli,const char *user, +const char *bucket,const char *key, +long content_len,bool expect_cont) {long avail;uint64_t objid;
@@ -1058,8 +1059,8 @@ static void object_get_event(struct open_chunk *ochunk)cli_write_run_compl (ochunk->cli); } -bool object_get_body (struct client *cli,const char *user,const char *bucket, -const char *key,bool want_body) +static bool object_get_body (struct client *cli,const char *user, +const char *bucket,const char *key,bool want_body) {char *md5;char timestr[64 ], modstr[64 ], *hdr, *tmp;
server/server.c +2 -2
@@ -796,8 +796,8 @@ bool cli_err_write(struct client *cli, char *hdr, char *content)return cli_write_start (cli); } -bool cli_resp (struct client *cli,int http_status,const char *content_type, -GList *content) +static bool cli_resp (struct client *cli,int http_status, +const char *content_type,GList *content) {int rc;char *hdr, timestr[50 ];
server/status.c +1 -1
@@ -62,7 +62,7 @@ static const char stat_err_fmt1[] = { "</html>\r\n" }; -bool stat_err (struct client *cli,enum errcode code) +static bool stat_err (struct client *cli,enum errcode code) {char *hdr =NULL , *content =NULL ;int err_status;
server/tdbadm.c +1 -1
@@ -189,7 +189,7 @@ static const GMarkupParser cfg_parse_ops = { .text = cfg_elm_text, }; -void read_config (void ) +static void read_config (void ) {GMarkupParseContext * parser;char *text;