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

[PATCH 4/4] sha1_file: don't mix enum with int

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Nov 15, 2011, 16:59 UTC
Message-ID
<1321376379-31750-5-git-send-email-artagnon@gmail.com>
In-Reply-To
<1321376379-31750-1-git-send-email-artagnon@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 sha1_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c
index 27f3b9b..869852b 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2616,7 +2616,7 @@ static int index_mem(unsigned char *sha1, void *buf, size_t size,
 	if ((type == OBJ_BLOB) && path) {
 		struct strbuf nbuf = STRBUF_INIT;
 		if (convert_to_git(path, buf, size, &nbuf,
-		                   write_object ? safe_crlf : 0)) {
+		                   write_object ? safe_crlf : SAFE_CRLF_FALSE)) {
 			buf = strbuf_detach(&nbuf, &size);
 			re_allocated = 1;
 		}
-- 
1.7.6.351.gb35ac.dirty
Previous: Junio C HamanoNext: Ramkumar Ramachandra
Message 8 of 9 in “Fix minor warnings reported by icc”
  1. 0/4 Fix minor warnings reported by iccRamkumar Ramachandra, Nov 15, 2011
  2. 1/4 http: remove unused function hex()Ramkumar Ramachandra, Nov 15, 2011
  3. 2/4 convert: don't mix enum with intRamkumar Ramachandra, Nov 15, 2011
  4. 3/4 ll-merge: initialize default_opts constRamkumar Ramachandra, Nov 15, 2011
  5. Junio C HamanoNov 15, 2011
  6. Ramkumar RamachandraNov 16, 2011
  7. Junio C HamanoNov 16, 2011
  8. 4/4 sha1_file: don't mix enum with intRamkumar Ramachandra, Nov 15, 2011
  9. 5/4 git-compat-util: don't assume value for undefined variableRamkumar Ramachandra, Nov 15, 2011

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.