SCCS-mr: usr.sbin/sendmail/src/daemon.c 162
SCCS-vsn: usr.sbin/sendmail/src/daemon.c 3.50
# include <sys/mx.h>
#ifndef DAEMON
# include <sys/mx.h>
#ifndef DAEMON
-SCCSID(@(#)daemon.c 3.49 %G% (w/o daemon mode));
+SCCSID(@(#)daemon.c 3.50 %G% (w/o daemon mode));
#else
#include <sys/socket.h>
#else
#include <sys/socket.h>
#include <netdb.h>
#include <wait.h>
#include <netdb.h>
#include <wait.h>
-SCCSID(@(#)daemon.c 3.49 %G% (with daemon mode));
+SCCSID(@(#)daemon.c 3.50 %G% (with daemon mode));
/*
** DAEMON.C -- routines to use when running as a daemon.
/*
** DAEMON.C -- routines to use when running as a daemon.
{
extern struct hostent *gethostbyname();
struct hostent *hp;
{
extern struct hostent *gethostbyname();
struct hostent *hp;
- gethostname(hostbuf, sizeof hostbuf);
+ gethostname(hostbuf, &i);
hp = gethostbyname(hostbuf);
if (hp != NULL)
return (hp->h_aliases);
hp = gethostbyname(hostbuf);
if (hp != NULL)
return (hp->h_aliases);