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 Remove unneeded code (confirmed by christos).



details:   https://anonhg.NetBSD.org/src/rev/bce9d87c6e8a
branches:  trunk
changeset: 499456:bce9d87c6e8a
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Nov 20 17:45:10 2000 +0000

description:
Remove unneeded code (confirmed by christos).

diffstat:

 dist/am-utils/amd/amq_subr.c |  25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diffs (39 lines):

diff -r f382c30bace5 -r bce9d87c6e8a dist/am-utils/amd/amq_subr.c
--- a/dist/am-utils/amd/amq_subr.c      Mon Nov 20 16:59:56 2000 +0000
+++ b/dist/am-utils/amd/amq_subr.c      Mon Nov 20 17:45:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amq_subr.c,v 1.3 2000/11/20 00:02:56 wiz Exp $ */
+/*     $NetBSD: amq_subr.c,v 1.4 2000/11/20 17:45:10 wiz Exp $ */
 
 /*
  * Copyright (c) 1997-2000 Erez Zadok
@@ -255,28 +255,7 @@
     return 0;
   return &rc;
 }
-#else /* not ENABLE_AMQ_MOUNT */
-
-int *
-amqproc_mount_1_svc(voidp argp, struct svc_req *rqstp)
-{
-  static int rc = EINVAL;
-  char *s = *(amq_string *) argp;
-  char dq[20];
-  struct sockaddr_in *sin;
-
-  if ((sin = amu_svc_getcaller(rqstp->rq_xprt)) == NULL) {
-    plog(XLOG_ERROR, "amu_svc_getcaller returned NULL");
-    return &rc;
-  }
-  plog(XLOG_ERROR,
-       "amq requested mount of %s from %s.%d, but code is disabled",
-       s, inet_dquad(dq, sin->sin_addr.s_addr),
-       ntohs(sin->sin_port));
-
-  return &rc;
-}
-#endif /* not ENABLE_AMQ_MOUNT */
+#endif /* ENABLE_AMQ_MOUNT */
 
 
 amq_string *



Home | Main Index | Thread Index | Old Index