Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/am-utils/amd enable the other half of initializing amq, ...



details:   https://anonhg.NetBSD.org/src/rev/e3eafc936f06
branches:  trunk
changeset: 539951:e3eafc936f06
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 29 23:10:40 2002 +0000

description:
enable the other half of initializing amq, otherwise we core-dump.

diffstat:

 dist/am-utils/amd/nfs_start.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r e10c91963d61 -r e3eafc936f06 dist/am-utils/amd/nfs_start.c
--- a/dist/am-utils/amd/nfs_start.c     Fri Nov 29 23:08:32 2002 +0000
+++ b/dist/am-utils/amd/nfs_start.c     Fri Nov 29 23:10:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_start.c,v 1.1.1.5 2002/11/29 22:58:15 christos Exp $       */
+/*     $NetBSD: nfs_start.c,v 1.2 2002/11/29 23:10:40 christos Exp $   */
 
 /*
  * Copyright (c) 1997-2002 Erez Zadok
@@ -360,7 +360,10 @@
   if (ret != 0)
     return ret;
   /* security: if user sets -D noamq, don't even create listening socket */
-  amuDebug(D_AMQ) {
+#ifdef DEBUG
+  amuDebug(D_AMQ)
+#endif
+  {
     ret = create_amq_service(&udp_soAMQ, &udp_amqp, &udp_amqncp, &tcp_soAMQ, &tcp_amqp, &tcp_amqncp);
     if (ret != 0)
       return ret;
@@ -418,7 +421,7 @@
 
 #ifdef DEBUG
   amuDebug(D_AMQ)
-#endif /* DEBUG */
+#endif
   {
     /*
      * Complete registration of amq (first TCP service then UDP)



Home | Main Index | Thread Index | Old Index