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

[PATCH/RFC] daemon: default to 256 for HOST_NAME_MAX if it is not defined

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 28, 2006, 10:00 UTC
Message-ID
<Pine.LNX.4.63.0609281200200.14200@wbgn013.biozentrum.uni-wuerzburg.de>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
	... or should we make it wider available, by putting it into
	cache.h?
 daemon.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/daemon.c b/daemon.c
index 5335d21..fc3951c 100644
--- a/daemon.c
+++ b/daemon.c
@@ -15,6 +15,10 @@ #include "cache.h"
 #include "exec_cmd.h"
 #include "interpolate.h"
 
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 256
+#endif
+
 static int log_syslog;
 static int verbose;
 static int reuseaddr;
-- 
1.4.2.1.g430572-dirty
Message 1 of 1 in “daemon: default to 256 for HOST_NAME_MAX if it is not defined”
  1. daemon: default to 256 for HOST_NAME_MAX if it is not definedJohannes Schindelin, Sep 28, 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.