comparison 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
comparison
equal deleted inserted replaced
150:1c7303c71f66 151:cb799054bd61
1 /* 1 /*
2 protocol.c 2 protocol.c
3 3
4 $Id: protocol.c 227 2000-10-26 21:21:13Z bears $ 4 $Id: protocol.c 228 2000-10-26 21:29:55Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
15 #include <signal.h> 15 #include <signal.h>
16 #include <sys/types.h> 16 #include <sys/types.h>
17 #include <sys/utsname.h> 17 #include <sys/utsname.h>
18 #include <unistd.h> 18 #include <unistd.h>
19 #include "common.h" 19 #include "common.h"
20 #include "configfile.h"
20 #include "dynamicstring.h" 21 #include "dynamicstring.h"
21 #include "log.h" 22 #include "log.h"
22 #include "over.h" 23 #include "over.h"
23 #include "util.h" 24 #include "util.h"
24 #include "protocol.h" 25 #include "protocol.h"
353 struct passwd *pwd; 354 struct passwd *pwd;
354 355
355 /* First get the domain to use. If config empty, use FQDN */ 356 /* First get the domain to use. If config empty, use FQDN */
356 Utl_cpyStr( domain, Cfg_fromDomain() ); 357 Utl_cpyStr( domain, Cfg_fromDomain() );
357 358
358 if ( DynStr_len( domain ) == 0 ) 359 if ( strlen( domain ) == 0 )
359 if ( ! getFQDN( domain ) ) 360 if ( ! getFQDN( domain ) )
360 Utl_catStr( domain, "unknown" ); 361 Utl_catStr( domain, "unknown" );
361 362
362 /* Now get pwd for the username */ 363 /* Now get pwd for the username */
363 pwd = getpwuid( getuid() ); 364 pwd = getpwuid( getuid() );