All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 5/7] tabled: make unnecesserily global functions static
@ 2010-04-02  1:51 Pete Zaitcev
  0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2010-04-02  1:51 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Project Hail List

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

---
 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 <zaitcev@yahoo.com>
Date:   Thu Apr 1 19:17:38 2010 -0600

    Add a bunch of statics.

diff --git a/server/object.c b/server/object.c
index 6d32316..d4d5b8d 100644
--- a/server/object.c
+++ b/server/object.c
@@ -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;
diff --git a/server/server.c b/server/server.c
index 600c8de..18b3359 100644
--- a/server/server.c
+++ b/server/server.c
@@ -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];
diff --git a/server/status.c b/server/status.c
index 2029c09..65bfd1e 100644
--- a/server/status.c
+++ b/server/status.c
@@ -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;
diff --git a/server/tdbadm.c b/server/tdbadm.c
index 2ab537b..86fa4b3 100644
--- a/server/tdbadm.c
+++ b/server/tdbadm.c
@@ -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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-02  1:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-02  1:51 [Patch 5/7] tabled: make unnecesserily global functions static Pete Zaitcev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.