hail-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [Patch 5/7] tabled: make unnecesserily global functions static
Date: Thu, 1 Apr 2010 19:51:43 -0600	[thread overview]
Message-ID: <20100401195143.65e3f141@redhat.com> (raw)

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;

                 reply	other threads:[~2010-04-02  1:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100401195143.65e3f141@redhat.com \
    --to=zaitcev@redhat.com \
    --cc=hail-devel@vger.kernel.org \
    --cc=jeff@garzik.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).