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

[PATCH] http-push: don't assume char is signed

From
NHNick Hengeveld <nickh@reactrix.com>
Date
Mar 20, 2006, 19:50 UTC
Message-ID
<20060320195051.GM3997@reactrix.com>

Declare remote_dir_exists[] as signed char to be sure that values of -1 are valid.

Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
---
 http-push.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
446e5a54db80664a0ae2a418766811136952067e
diff --git a/http-push.c b/http-push.c
index 42b0d59..a35e74d 100644
--- a/http-push.c
+++ b/http-push.c
@@ -66,7 +66,7 @@ enum XML_Status {
 
 static int pushing = 0;
 static int aborted = 0;
-static char remote_dir_exists[256];
+static signed char remote_dir_exists[256];
 
 static struct curl_slist *no_pragma_header;
 static struct curl_slist *default_headers;
-- 
1.2.4.g55c6-dirty
Message 1 of 1 in “http-push: don't assume char is signed”
  1. http-push: don't assume char is signedNick Hengeveld, Mar 20, 2006

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.