make a bunch of #defines into 0/1 instead of ifdef/ifndef
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 14 Jun 1995 00:23:20 +0000 (16:23 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 14 Jun 1995 00:23:20 +0000 (16:23 -0800)
SCCS-vsn: usr.sbin/sendmail/src/usersmtp.c 8.55
SCCS-vsn: usr.sbin/sendmail/src/recipient.c 8.93
SCCS-vsn: usr.sbin/sendmail/src/main.c 8.129
SCCS-vsn: usr.sbin/sendmail/src/conf.h 8.188
SCCS-vsn: usr.sbin/sendmail/src/sendmail.h 8.141
SCCS-vsn: usr.sbin/sendmail/src/daemon.c 8.102
SCCS-vsn: usr.sbin/sendmail/src/util.c 8.76
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 8.158
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.195
SCCS-vsn: usr.sbin/sendmail/src/map.c 8.77

usr/src/usr.sbin/sendmail/src/conf.c
usr/src/usr.sbin/sendmail/src/conf.h
usr/src/usr.sbin/sendmail/src/daemon.c
usr/src/usr.sbin/sendmail/src/deliver.c
usr/src/usr.sbin/sendmail/src/main.c
usr/src/usr.sbin/sendmail/src/map.c
usr/src/usr.sbin/sendmail/src/recipient.c
usr/src/usr.sbin/sendmail/src/sendmail.h
usr/src/usr.sbin/sendmail/src/usersmtp.c
usr/src/usr.sbin/sendmail/src/util.c

index 5f4ecce..67f151e 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)conf.c     8.194 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c     8.195 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -332,7 +332,7 @@ setupmaps()
                hes_map_lookup, null_map_store);
 #endif
 
                hes_map_lookup, null_map_store);
 #endif
 
-#ifdef NETINFO
+#if NETINFO
        MAPDEF("netinfo", NULL, MCF_ALIASOK,
                map_parseargs, ni_map_open, null_map_close,
                ni_map_lookup, null_map_store);
        MAPDEF("netinfo", NULL, MCF_ALIASOK,
                map_parseargs, ni_map_open, null_map_close,
                ni_map_lookup, null_map_store);
@@ -2844,7 +2844,7 @@ getcfname()
 
        if (ConfFile != NULL)
                return ConfFile;
 
        if (ConfFile != NULL)
                return ConfFile;
-#ifdef NETINFO
+#if NETINFO
        {
                extern char *ni_propval();
                char *cflocation;
        {
                extern char *ni_propval();
                char *cflocation;
@@ -3342,7 +3342,7 @@ load_if_names()
 **             Caller should free the return value of ni_proval
 */
 
 **             Caller should free the return value of ni_proval
 */
 
-#ifdef NETINFO
+#if NETINFO
 
 # include <netinfo/ni.h>
 
 
 # include <netinfo/ni.h>
 
index 540ee68..32acd50 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)conf.h      8.187 (Berkeley) %G%
+ *     @(#)conf.h      8.188 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -53,34 +53,35 @@ struct rusage;      /* forward declaration to get gcc to shut up in wait.h */
 
 /**********************************************************************
 **  Compilation options.
 
 /**********************************************************************
 **  Compilation options.
-**
-**     #define these if they are available; comment them out otherwise.
-**********************************************************************/
-
-# define LOG           1       /* enable logging */
-# define UGLYUUCP      1       /* output ugly UUCP From lines */
-# define NETUNIX       1       /* include unix domain support */
-# define NETINET       1       /* include internet support */
-# define MATCHGECOS    1       /* match user names from gecos field */
-# define XDEBUG                1       /* enable extended debugging */
-# if (defined(NEWDB) || defined(HESIOD)) && !defined(USERDB)
-#  define USERDB       1       /* look in user database */
-# endif
-
-/**********************************************************************
-**  0/1 Compilation options.
 **     #define these to 1 if they are available;
 **     #define them to 0 otherwise.
 **     #define these to 1 if they are available;
 **     #define them to 0 otherwise.
+**  All can be overridden from Makefile.
 **********************************************************************/
 
 **********************************************************************/
 
+# ifndef NETINET
+#  define NETINET      1       /* include internet support */
+# endif
+
 # ifndef NAMED_BIND
 #  define NAMED_BIND   1       /* use Berkeley Internet Domain Server */
 # endif
 
 # ifndef NAMED_BIND
 #  define NAMED_BIND   1       /* use Berkeley Internet Domain Server */
 # endif
 
+# ifndef XDEBUG
+#  define XDEBUG       1       /* enable extended debugging */
+# endif
+
+# ifndef MATCHGECOS
+#  define MATCHGECOS   1       /* match user names from gecos field */
+# endif
+
 # ifndef DSN
 #  define DSN          1       /* include delivery status notification code */
 # endif
 
 # ifndef DSN
 #  define DSN          1       /* include delivery status notification code */
 # endif
 
+# if !defined(USERDB) && (defined(NEWDB) || defined(HESIOD))
+#  define USERDB       1       /* look in user database */
+# endif
+
 # ifndef MIME8TO7
 #  define MIME8TO7     1       /* 8->7 bit MIME conversions */
 # endif
 # ifndef MIME8TO7
 #  define MIME8TO7     1       /* 8->7 bit MIME conversions */
 # endif
@@ -89,14 +90,19 @@ struct rusage;      /* forward declaration to get gcc to shut up in wait.h */
 #  define MIME7TO8     1       /* 7->8 bit MIME conversions */
 # endif
 
 #  define MIME7TO8     1       /* 7->8 bit MIME conversions */
 # endif
 
-/*
-**  Most systems have symbolic links today, so default them on.  You
-**  can turn them off by #undef'ing this below.
-*/
+/**********************************************************************
+**  "Hard" compilation options.
+**     #define these if they are available; comment them out otherwise.
+**  These cannot be overridden from the Makefile, and should really not
+**  be turned off unless absolutely necessary.
+**********************************************************************/
 
 
-# define HASLSTAT      1       /* has lstat(2) call */
+# define LOG                   /* enable logging -- don't turn off */
 
 
-/*
+/**********************************************************************
+**  End of site-specific configuration.
+**********************************************************************/
+\f/*
 **  General "standard C" defines.
 **
 **     These may be undone later, to cope with systems that claim to
 **  General "standard C" defines.
 **
 **     These may be undone later, to cope with systems that claim to
@@ -110,6 +116,12 @@ struct rusage;     /* forward declaration to get gcc to shut up in wait.h */
 #ifdef __STDC__
 # define HASSETVBUF    1       /* we have setvbuf(3) in libc */
 #endif
 #ifdef __STDC__
 # define HASSETVBUF    1       /* we have setvbuf(3) in libc */
 #endif
+
+/*
+**  Assume you have standard calls; can be #undefed below if necessary.
+*/
+
+# define HASLSTAT      1       /* has lstat(2) call */
 \f/**********************************************************************
 **  Operating system configuration.
 **
 \f/**********************************************************************
 **  Operating system configuration.
 **
@@ -117,7 +129,6 @@ struct rusage;      /* forward declaration to get gcc to shut up in wait.h */
 **     change these.
 **********************************************************************/
 
 **     change these.
 **********************************************************************/
 
-
 /*
 **  HP-UX -- tested for 8.07, 9.00, and 9.01.
 **
 /*
 **  HP-UX -- tested for 8.07, 9.00, and 9.01.
 **
@@ -617,7 +628,7 @@ extern int          errno;
 # define SFS_TYPE      SFS_4ARGS       /* use <sys/statfs.h> 4-arg impl */
 # define SFS_BAVAIL    f_bfree         /* alternate field name */
 # define TZ_TYPE       TZ_TM_NAME      /* use tm->tm_name */
 # define SFS_TYPE      SFS_4ARGS       /* use <sys/statfs.h> 4-arg impl */
 # define SFS_BAVAIL    f_bfree         /* alternate field name */
 # define TZ_TYPE       TZ_TM_NAME      /* use tm->tm_name */
-# undef NETUNIX                        /* no unix domain socket support */
+# define NETUNIX       0       /* no unix domain socket support */
 #endif
 
 
 #endif
 
 
@@ -636,7 +647,7 @@ extern int          errno;
 # define HASGETUSERSHELL 0     /* does not have getusershell(3) call */
 # define HASSETREUID   1       /* has setreuid(2) call */
 # define NEEDFSYNC     1       /* needs the fsync(2) call stub */
 # define HASGETUSERSHELL 0     /* does not have getusershell(3) call */
 # define HASSETREUID   1       /* has setreuid(2) call */
 # define NEEDFSYNC     1       /* needs the fsync(2) call stub */
-# undef NETUNIX                        /* no unix domain socket support */
+# define NETUNIX       0       /* no unix domain socket support */
 # define FORK          fork
 # define MAXPATHLEN    1024
 # define LA_TYPE       LA_SHORT
 # define FORK          fork
 # define MAXPATHLEN    1024
 # define LA_TYPE       LA_SHORT
@@ -673,7 +684,7 @@ typedef short               pid_t;
 # define SFS_TYPE      SFS_STATFS      /* use <sys/statfs.h> statfs() impl */
 # define SFS_BAVAIL    f_bfree         /* alternate field name */
 # define TZ_TYPE       TZ_TM_NAME      /* use tm->tm_name */
 # define SFS_TYPE      SFS_STATFS      /* use <sys/statfs.h> statfs() impl */
 # define SFS_BAVAIL    f_bfree         /* alternate field name */
 # define TZ_TYPE       TZ_TM_NAME      /* use tm->tm_name */
-# undef NETUNIX                        /* no unix domain socket support */
+# define NETUNIX       0       /* no unix domain socket support */
 # undef WIFEXITED
 # undef WEXITSTATUS
 # define strtoul       strtol  /* gcc library bogosity */
 # undef WIFEXITED
 # undef WEXITSTATUS
 # define strtoul       strtol  /* gcc library bogosity */
@@ -1116,7 +1127,7 @@ extern int        syslog(int, char *, ...);
 
 #ifdef _UTS
 # include <sys/sysmacros.h>
 
 #ifdef _UTS
 # include <sys/sysmacros.h>
-# undef HASLSTAT       /* has symlinks, but they cause problems */
+# undef HASLSTAT               /* has symlinks, but they cause problems */
 # define NEEDFSYNC     1       /* system fsync(2) fails on non-EFS filesys */
 # define SYS5SIGNALS   1       /* System V signal semantics */
 # define SYS5SETPGRP   1       /* use System V setpgrp(2) syscall */
 # define NEEDFSYNC     1       /* system fsync(2) fails on non-EFS filesys */
 # define SYS5SIGNALS   1       /* System V signal semantics */
 # define SYS5SETPGRP   1       /* use System V setpgrp(2) syscall */
@@ -1415,6 +1426,10 @@ extern int       errno;
 # define HASGETUSERSHELL 1     /* libc has getusershell(3) call */
 #endif
 
 # define HASGETUSERSHELL 1     /* libc has getusershell(3) call */
 #endif
 
+#ifndef NETUNIX
+# define NETUNIX       1       /* include unix domain support */
+#endif
+
 #ifndef HASFLOCK
 # define HASFLOCK      0       /* assume no flock(2) support */
 #endif
 #ifndef HASFLOCK
 # define HASFLOCK      0       /* assume no flock(2) support */
 #endif
index 697083b..849e87a 100644 (file)
@@ -12,9 +12,9 @@
 
 #ifndef lint
 #ifdef DAEMON
 
 #ifndef lint
 #ifdef DAEMON
-static char sccsid[] = "@(#)daemon.c   8.101 (Berkeley) %G% (with daemon mode)";
+static char sccsid[] = "@(#)daemon.c   8.102 (Berkeley) %G% (with daemon mode)";
 #else
 #else
-static char sccsid[] = "@(#)daemon.c   8.101 (Berkeley) %G% (without daemon mode)";
+static char sccsid[] = "@(#)daemon.c   8.102 (Berkeley) %G% (without daemon mode)";
 #endif
 #endif /* not lint */
 
 #endif
 #endif /* not lint */
 
@@ -94,7 +94,7 @@ getrequests()
        bool refusingconnections = TRUE;
        FILE *pidf;
        int socksize;
        bool refusingconnections = TRUE;
        FILE *pidf;
        int socksize;
-#ifdef XDEBUG
+#if XDEBUG
        bool j_has_dot;
 #endif
        extern void reapchild();
        bool j_has_dot;
 #endif
        extern void reapchild();
@@ -149,7 +149,7 @@ getrequests()
                fclose(pidf);
        }
 
                fclose(pidf);
        }
 
-#ifdef XDEBUG
+#if XDEBUG
        {
                char jbuf[MAXHOSTNAMELEN];
 
        {
                char jbuf[MAXHOSTNAMELEN];
 
@@ -229,7 +229,7 @@ makeconnection(host, port, mci, usesecureport)
                if (p != NULL)
                {
                        *p = '\0';
                if (p != NULL)
                {
                        *p = '\0';
-#ifdef NETINET
+#if NETINET
                        hid = inet_addr(&host[1]);
                        if (hid == -1)
 #endif
                        hid = inet_addr(&host[1]);
                        if (hid == -1)
 #endif
@@ -261,7 +261,7 @@ makeconnection(host, port, mci, usesecureport)
                        mci->mci_status = "5.1.2";
                        return (EX_NOHOST);
                }
                        mci->mci_status = "5.1.2";
                        return (EX_NOHOST);
                }
-#ifdef NETINET
+#if NETINET
                addr.sin.sin_family = AF_INET;          /*XXX*/
                addr.sin.sin_addr.s_addr = hid;
 #endif
                addr.sin.sin_family = AF_INET;          /*XXX*/
                addr.sin.sin_addr.s_addr = hid;
 #endif
@@ -302,7 +302,7 @@ gothostent:
                addr.sa.sa_family = hp->h_addrtype;
                switch (hp->h_addrtype)
                {
                addr.sa.sa_family = hp->h_addrtype;
                switch (hp->h_addrtype)
                {
-#ifdef NETINET
+#if NETINET
                  case AF_INET:
                        bcopy(hp->h_addr,
                                &addr.sin.sin_addr,
                  case AF_INET:
                        bcopy(hp->h_addr,
                                &addr.sin.sin_addr,
@@ -341,14 +341,14 @@ gothostent:
 
        switch (addr.sa.sa_family)
        {
 
        switch (addr.sa.sa_family)
        {
-#ifdef NETINET
+#if NETINET
          case AF_INET:
                addr.sin.sin_port = port;
                addrlen = sizeof (struct sockaddr_in);
                break;
 #endif
 
          case AF_INET:
                addr.sin.sin_port = port;
                addrlen = sizeof (struct sockaddr_in);
                break;
 #endif
 
-#ifdef NETISO
+#if NETISO
          case AF_ISO:
                /* assume two byte transport selector */
                bcopy((char *) &port, TSEL((struct sockaddr_iso *) &addr), 2);
          case AF_ISO:
                /* assume two byte transport selector */
                bcopy((char *) &port, TSEL((struct sockaddr_iso *) &addr), 2);
@@ -445,7 +445,7 @@ gothostent:
                                        errstring(sav_errno));
                        switch (addr.sa.sa_family)
                        {
                                        errstring(sav_errno));
                        switch (addr.sa.sa_family)
                        {
-#ifdef NETINET
+#if NETINET
                          case AF_INET:
                                bcopy(hp->h_addr_list[i++],
                                      &addr.sin.sin_addr,
                          case AF_INET:
                                bcopy(hp->h_addr_list[i++],
                                      &addr.sin.sin_addr,
@@ -1036,7 +1036,7 @@ host_map_lookup(map, name, av, statp)
 **             A printable version of that sockaddr.
 */
 
 **             A printable version of that sockaddr.
 */
 
-#ifdef NETLINK
+#if NETLINK
 # include <net/if_dl.h>
 #endif
 
 # include <net/if_dl.h>
 #endif
 
@@ -1057,7 +1057,7 @@ anynet_ntoa(sap)
 
        switch (sap->sa.sa_family)
        {
 
        switch (sap->sa.sa_family)
        {
-#ifdef NETUNIX
+#if NETUNIX
          case AF_UNIX:
                if (sap->sunix.sun_path[0] != '\0')
                        sprintf(buf, "[UNIX: %.64s]", sap->sunix.sun_path);
          case AF_UNIX:
                if (sap->sunix.sun_path[0] != '\0')
                        sprintf(buf, "[UNIX: %.64s]", sap->sunix.sun_path);
@@ -1066,12 +1066,12 @@ anynet_ntoa(sap)
                return buf;
 #endif
 
                return buf;
 #endif
 
-#ifdef NETINET
+#if NETINET
          case AF_INET:
                return inet_ntoa(sap->sin.sin_addr);
 #endif
 
          case AF_INET:
                return inet_ntoa(sap->sin.sin_addr);
 #endif
 
-#ifdef NETLINK
+#if NETLINK
          case AF_LINK:
                sprintf(buf, "[LINK: %s]",
                        link_ntoa((struct sockaddr_dl *) &sap->sa));
          case AF_LINK:
                sprintf(buf, "[LINK: %s]",
                        link_ntoa((struct sockaddr_dl *) &sap->sa));
@@ -1123,7 +1123,7 @@ hostnamebyanyaddr(sap)
 
        switch (sap->sa.sa_family)
        {
 
        switch (sap->sa.sa_family)
        {
-#ifdef NETINET
+#if NETINET
          case AF_INET:
                hp = sm_gethostbyaddr((char *) &sap->sin.sin_addr,
                        INADDRSZ,
          case AF_INET:
                hp = sm_gethostbyaddr((char *) &sap->sin.sin_addr,
                        INADDRSZ,
@@ -1131,7 +1131,7 @@ hostnamebyanyaddr(sap)
                break;
 #endif
 
                break;
 #endif
 
-#ifdef NETISO
+#if NETISO
          case AF_ISO:
                hp = sm_gethostbyaddr((char *) &sap->siso.siso_addr,
                        sizeof sap->siso.siso_addr,
          case AF_ISO:
                hp = sm_gethostbyaddr((char *) &sap->siso.siso_addr,
                        sizeof sap->siso.siso_addr,
index ee4edbf..b7eb70e 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)deliver.c  8.157 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c  8.158 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -518,7 +518,7 @@ sendenvelope(e, mode)
        /* now run through the queue */
        for (q = e->e_sendqueue; q != NULL; q = q->q_next)
        {
        /* now run through the queue */
        for (q = e->e_sendqueue; q != NULL; q = q->q_next)
        {
-#ifdef XDEBUG
+#if XDEBUG
                char wbuf[MAXNAME + 20];
 
                (void) sprintf(wbuf, "sendall(%s)", q->q_paddr);
                char wbuf[MAXNAME + 20];
 
                (void) sprintf(wbuf, "sendall(%s)", q->q_paddr);
@@ -563,7 +563,7 @@ sendenvelope(e, mode)
                e->e_ntries++;
        }
 
                e->e_ntries++;
        }
 
-#ifdef XDEBUG
+#if XDEBUG
        checkfd012("end of sendenvelope");
 #endif
 
        checkfd012("end of sendenvelope");
 #endif
 
@@ -1035,7 +1035,7 @@ deliver(e, firstto)
        SmtpPhase = NULL;
        mci = NULL;
 
        SmtpPhase = NULL;
        mci = NULL;
 
-#ifdef XDEBUG
+#if XDEBUG
        {
                char wbuf[MAXLINE];
 
        {
                char wbuf[MAXLINE];
 
@@ -1637,7 +1637,7 @@ tryhost:
        **  Restore state and return.
        */
 
        **  Restore state and return.
        */
 
-#ifdef XDEBUG
+#if XDEBUG
        {
                char wbuf[MAXLINE];
 
        {
                char wbuf[MAXLINE];
 
@@ -2229,7 +2229,6 @@ putfromline(mci, e)
        if (bitnset(M_NHDR, mci->mci_mailer->m_flags))
                return;
 
        if (bitnset(M_NHDR, mci->mci_mailer->m_flags))
                return;
 
-# ifdef UGLYUUCP
        if (bitnset(M_UGLYUUCP, mci->mci_mailer->m_flags))
        {
                char *bang;
        if (bitnset(M_UGLYUUCP, mci->mci_mailer->m_flags))
        {
                char *bang;
@@ -2249,7 +2248,6 @@ putfromline(mci, e)
                        template = xbuf;
                }
        }
                        template = xbuf;
                }
        }
-# endif /* UGLYUUCP */
        expand(template, buf, sizeof buf, e);
        putxline(buf, mci, PXLF_NOTHINGSPECIAL);
 }
        expand(template, buf, sizeof buf, e);
        putxline(buf, mci, PXLF_NOTHINGSPECIAL);
 }
index 4374f49..d633fb3 100644 (file)
@@ -13,7 +13,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     8.128 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     8.129 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        _DEFINE
 #endif /* not lint */
 
 #define        _DEFINE
@@ -698,7 +698,7 @@ main(argc, argv, envp)
        **      Extract special fields for local use.
        */
 
        **      Extract special fields for local use.
        */
 
-#ifdef XDEBUG
+#if XDEBUG
        checkfd012("before readcf");
 #endif
        vendor_pre_defaults(CurEnv);
        checkfd012("before readcf");
 #endif
        vendor_pre_defaults(CurEnv);
@@ -917,7 +917,7 @@ main(argc, argv, envp)
                exit(ExitStat);
        }
 
                exit(ExitStat);
        }
 
-#ifdef XDEBUG
+#if XDEBUG
        checkfd012("before main() initmaps");
 #endif
 
        checkfd012("before main() initmaps");
 #endif
 
@@ -1412,7 +1412,7 @@ disconnect(droplev, e)
                errno = 0;
        }
 
                errno = 0;
        }
 
-#ifdef XDEBUG
+#if XDEBUG
        checkfd012("disconnect");
 #endif
 
        checkfd012("disconnect");
 #endif
 
index 7bd56c5..3157675 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)map.c      8.76 (Berkeley) %G%";
+static char sccsid[] = "@(#)map.c      8.77 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -369,7 +369,7 @@ initmaps(rebuild, e)
 {
        extern void map_init();
 
 {
        extern void map_init();
 
-#ifdef XDEBUG
+#if XDEBUG
        checkfd012("entering initmaps");
 #endif
        CurEnv = e;
        checkfd012("entering initmaps");
 #endif
        CurEnv = e;
@@ -382,7 +382,7 @@ initmaps(rebuild, e)
        {
                stabapply(map_init, 0);
        }
        {
                stabapply(map_init, 0);
        }
-#ifdef XDEBUG
+#if XDEBUG
        checkfd012("exiting initmaps");
 #endif
 }
        checkfd012("exiting initmaps");
 #endif
 }
@@ -1916,7 +1916,7 @@ hes_map_lookup(map, name, av, statp)
 **  NeXT NETINFO Modules
 */
 
 **  NeXT NETINFO Modules
 */
 
-#ifdef NETINFO
+#if NETINFO
 
 #define NETINFO_DEFAULT_DIR            "/aliases"
 #define NETINFO_DEFAULT_PROPERTY       "members"
 
 #define NETINFO_DEFAULT_DIR            "/aliases"
 #define NETINFO_DEFAULT_PROPERTY       "members"
index 54bce03..2fa9466 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)recipient.c        8.92 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c        8.93 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -683,7 +683,7 @@ finduser(name, fuzzyp)
                return (pw);
        }
 
                return (pw);
        }
 
-#ifdef MATCHGECOS
+#if MATCHGECOS
        /* see if fuzzy matching allowed */
        if (!MatchGecos)
        {
        /* see if fuzzy matching allowed */
        if (!MatchGecos)
        {
index 0b8f202..c0351c4 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)sendmail.h  8.140 (Berkeley) %G%
+ *     @(#)sendmail.h  8.141 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -15,7 +15,7 @@
 # ifdef _DEFINE
 # define EXTERN
 # ifndef lint
 # ifdef _DEFINE
 # define EXTERN
 # ifndef lint
-static char SmailSccsId[] =    "@(#)sendmail.h 8.140           %G%";
+static char SmailSccsId[] =    "@(#)sendmail.h 8.141           %G%";
 # endif
 # else /*  _DEFINE */
 # define EXTERN extern
 # endif
 # else /*  _DEFINE */
 # define EXTERN extern
@@ -46,19 +46,19 @@ static char SmailSccsId[] = "@(#)sendmail.h 8.140           %G%";
 # ifdef DAEMON
 # include <sys/socket.h>
 # endif
 # ifdef DAEMON
 # include <sys/socket.h>
 # endif
-# ifdef NETUNIX
+# if NETUNIX
 # include <sys/un.h>
 # endif
 # include <sys/un.h>
 # endif
-# ifdef NETINET
+# if NETINET
 # include <netinet/in.h>
 # endif
 # include <netinet/in.h>
 # endif
-# ifdef NETISO
+# if NETISO
 # include <netiso/iso.h>
 # endif
 # include <netiso/iso.h>
 # endif
-# ifdef NETNS
+# if NETNS
 # include <netns/ns.h>
 # endif
 # include <netns/ns.h>
 # endif
-# ifdef NETX25
+# if NETX25
 # include <netccitt/x25.h>
 # endif
 
 # include <netccitt/x25.h>
 # endif
 
@@ -903,19 +903,19 @@ struct prival
 union bigsockaddr
 {
        struct sockaddr         sa;     /* general version */
 union bigsockaddr
 {
        struct sockaddr         sa;     /* general version */
-#ifdef NETUNIX
+#if NETUNIX
        struct sockaddr_un      sunix;  /* UNIX family */
 #endif
        struct sockaddr_un      sunix;  /* UNIX family */
 #endif
-#ifdef NETINET
+#if NETINET
        struct sockaddr_in      sin;    /* INET family */
 #endif
        struct sockaddr_in      sin;    /* INET family */
 #endif
-#ifdef NETISO
+#if NETISO
        struct sockaddr_iso     siso;   /* ISO family */
 #endif
        struct sockaddr_iso     siso;   /* ISO family */
 #endif
-#ifdef NETNS
+#if NETNS
        struct sockaddr_ns      sns;    /* XNS family */
 #endif
        struct sockaddr_ns      sns;    /* XNS family */
 #endif
-#ifdef NETX25
+#if NETX25
        struct sockaddr_x25     sx25;   /* X.25 family */
 #endif
 };
        struct sockaddr_x25     sx25;   /* X.25 family */
 #endif
 };
index 65ab1d5..c118138 100644 (file)
@@ -10,9 +10,9 @@
 
 #ifndef lint
 #ifdef SMTP
 
 #ifndef lint
 #ifdef SMTP
-static char sccsid[] = "@(#)usersmtp.c 8.54 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 8.55 (Berkeley) %G% (with SMTP)";
 #else
 #else
-static char sccsid[] = "@(#)usersmtp.c 8.54 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 8.55 (Berkeley) %G% (without SMTP)";
 #endif
 #endif /* not lint */
 
 #endif
 #endif /* not lint */
 
@@ -884,7 +884,7 @@ reply(m, mci, e, timeout, pfunc)
                                pause();
                        mci->mci_state = MCIS_ERROR;
                        smtpquit(m, mci, e);
                                pause();
                        mci->mci_state = MCIS_ERROR;
                        smtpquit(m, mci, e);
-#ifdef XDEBUG
+#if XDEBUG
                        {
                                char wbuf[MAXLINE];
                                char *p = wbuf;
                        {
                                char wbuf[MAXLINE];
                                char *p = wbuf;
index c5840d7..9d68587 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)util.c     8.75 (Berkeley) %G%";
+static char sccsid[] = "@(#)util.c     8.76 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -1039,7 +1039,7 @@ xfclose(fp, a, b)
 {
        if (tTd(53, 99))
                printf("xfclose(%x) %s %s\n", fp, a, b);
 {
        if (tTd(53, 99))
                printf("xfclose(%x) %s %s\n", fp, a, b);
-#ifdef XDEBUG
+#if XDEBUG
        if (fileno(fp) == 1)
                syserr("xfclose(%s %s): fd = 1", a, b);
 #endif
        if (fileno(fp) == 1)
                syserr("xfclose(%s %s): fd = 1", a, b);
 #endif
@@ -1099,7 +1099,7 @@ sfgets(buf, siz, fp, timeout, during)
                        usrerr("451 timeout waiting for input during %s",
                                during);
                        buf[0] = '\0';
                        usrerr("451 timeout waiting for input during %s",
                                during);
                        buf[0] = '\0';
-#ifdef XDEBUG
+#if XDEBUG
                        checkfd012(during);
 #endif
                        return (NULL);
                        checkfd012(during);
 #endif
                        return (NULL);
@@ -1446,7 +1446,7 @@ void
 checkfd012(where)
        char *where;
 {
 checkfd012(where)
        char *where;
 {
-#ifdef XDEBUG
+#if XDEBUG
        register int i;
        struct stat stbuf;
 
        register int i;
        struct stat stbuf;