Mercurial > noffle
diff src/protocol.c @ 151:cb799054bd61 noffle
[svn] Rats. Couple of warning slipped in during the last update. Fix 'em.
author | bears |
---|---|
date | Thu, 26 Oct 2000 22:29:55 +0100 |
parents | 1c7303c71f66 |
children | 94f2e5607772 |
line wrap: on
line diff
--- a/src/protocol.c Thu Oct 26 22:21:13 2000 +0100 +++ b/src/protocol.c Thu Oct 26 22:29:55 2000 +0100 @@ -1,7 +1,7 @@ /* protocol.c - $Id: protocol.c 227 2000-10-26 21:21:13Z bears $ + $Id: protocol.c 228 2000-10-26 21:29:55Z bears $ */ #if HAVE_CONFIG_H @@ -17,6 +17,7 @@ #include <sys/utsname.h> #include <unistd.h> #include "common.h" +#include "configfile.h" #include "dynamicstring.h" #include "log.h" #include "over.h" @@ -355,7 +356,7 @@ /* First get the domain to use. If config empty, use FQDN */ Utl_cpyStr( domain, Cfg_fromDomain() ); - if ( DynStr_len( domain ) == 0 ) + if ( strlen( domain ) == 0 ) if ( ! getFQDN( domain ) ) Utl_catStr( domain, "unknown" );