git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/4] Changed timestamps to time_t instead of unsigned long for approxidate()

From
david@statichacks.org <david@statichacks.org>
Date
Nov 6, 2008, 17:48 UTC
Message-ID
<1225993728-4779-4-git-send-email-david@statichacks.org>
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
Previous: david@statichacks.orgNext: david@statichacks.org
Message 4 of 9 in “replace unsinged long with time_t”
  1. 0/4 replace unsinged long with time_tdavid@statichacks.org, Nov 6, 2008
  2. 1/4 Changed timestamps to time_t instead of unsigneddavid@statichacks.org, Nov 6, 2008
  3. 2/4 Changed timestamps to time_t in header filesdavid@statichacks.org, Nov 6, 2008
  4. 3/4 Changed timestamps to time_t instead of unsigned long for approxidate()david@statichacks.org, Nov 6, 2008
  5. 4/4 Changed timestamps to time_tdavid@statichacks.org, Nov 6, 2008
  6. Linus TorvaldsNov 6, 2008
  7. David BrysonNov 6, 2008
  8. Linus TorvaldsNov 6, 2008
  9. Daniel StenbergNov 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.