Git development
 help / color / mirror / Atom feed
From: david@statichacks.org
To: git@vger.kernel.org
Cc: David Bryson <david@statichacks.org>
Subject: [PATCH 3/4] Changed timestamps to time_t instead of unsigned long for approxidate()
Date: Thu,  6 Nov 2008 09:48:47 -0800	[thread overview]
Message-ID: <1225993728-4779-4-git-send-email-david@statichacks.org> (raw)
In-Reply-To: <1225993728-4779-3-git-send-email-david@statichacks.org>

From: David Bryson <david@statichacks.org>

---
 builtin-gc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-gc.c b/builtin-gc.c
index 7af65bb..168f484 100644
--- a/builtin-gc.c
+++ b/builtin-gc.c
@@ -58,7 +58,7 @@ static int gc_config(const char *var, const char *value, void *cb)
 	}
 	if (!strcmp(var, "gc.pruneexpire")) {
 		if (value && strcmp(value, "now")) {
-			unsigned long now = approxidate("now");
+			time_t now = approxidate("now");
 			if (approxidate(value) >= now)
 				return error("Invalid %s: '%s'", var, value);
 		}
-- 
1.6.0.1

  reply	other threads:[~2008-11-06 17:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-06 17:48 [PATCH 0/4] replace unsinged long with time_t david
2008-11-06 17:48 ` [PATCH 1/4] Changed timestamps to time_t instead of unsigned david
2008-11-06 17:48   ` [PATCH 2/4] Changed timestamps to time_t in header files david
2008-11-06 17:48     ` david [this message]
2008-11-06 17:48       ` [PATCH 4/4] Changed timestamps to time_t david
2008-11-06 18:13 ` [PATCH 0/4] replace unsinged long with time_t Linus Torvalds
2008-11-06 18:37   ` David Bryson
2008-11-06 18:45     ` Linus Torvalds
2008-11-06 21:04   ` Daniel Stenberg

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=1225993728-4779-4-git-send-email-david@statichacks.org \
    --to=david@statichacks.org \
    --cc=git@vger.kernel.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