From da12e5f2c2e4b5a39a2a1d6ef551717061455d44 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 25 Sep 2003 11:01:25 +0000 Subject: [PATCH] Fix comment. --- lib/getdomainname.c | 3 ++- lib/getdomainname.h | 3 ++- lib/xgetdomainname.c | 3 ++- lib/xgetdomainname.h | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/getdomainname.c b/lib/getdomainname.c index ce1e200a66..89831e9b03 100644 --- a/lib/getdomainname.c +++ b/lib/getdomainname.c @@ -30,7 +30,8 @@ /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN. diff --git a/lib/getdomainname.h b/lib/getdomainname.h index cf8e33c3f6..5395a1f5ac 100644 --- a/lib/getdomainname.h +++ b/lib/getdomainname.h @@ -30,7 +30,8 @@ /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN. diff --git a/lib/xgetdomainname.c b/lib/xgetdomainname.c index aaf50a92d1..4c640326c0 100644 --- a/lib/xgetdomainname.c +++ b/lib/xgetdomainname.c @@ -39,7 +39,8 @@ /* Return the NIS domain name of the machine, in malloc'd storage. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. If malloc fails, exit. Upon any other failure, set errno and return NULL. */ char * diff --git a/lib/xgetdomainname.h b/lib/xgetdomainname.h index 1266c6c13c..be8d22cc93 100644 --- a/lib/xgetdomainname.h +++ b/lib/xgetdomainname.h @@ -21,7 +21,8 @@ /* Return the NIS domain name of the machine, in malloc'd storage. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. If malloc fails, exit. Upon any other failure, set errno and return NULL. */ extern char *xgetdomainname (void); -- 2.30.2