summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-10-13 11:18:53 +0000
committercharnier <charnier@FreeBSD.org>1997-10-13 11:18:53 +0000
commit67de6ed0a2d20541b0f95abf9e5e36e1b8d32de4 (patch)
tree4353fdf164b72946f572231854d2363137d0c61a /usr.sbin/rpc.yppasswdd/yppasswdd_main.c
parent8f640499e9439317b5c4c86c9e29cebdf7d2fcbd (diff)
downloadFreeBSD-src-67de6ed0a2d20541b0f95abf9e5e36e1b8d32de4.zip
FreeBSD-src-67de6ed0a2d20541b0f95abf9e5e36e1b8d32de4.tar.gz
Remove multiply defined Id string. Hide sccsid string.
Diffstat (limited to 'usr.sbin/rpc.yppasswdd/yppasswdd_main.c')
-rw-r--r--usr.sbin/rpc.yppasswdd/yppasswdd_main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
index d785d65..f1a65ab 100644
--- a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
+++ b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
@@ -28,10 +28,13 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: yppasswdd_main.c,v 1.2 1997/07/28 18:31:11 wpaul Exp $
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
#include "yppasswd.h"
#include <stdio.h>
#include <sys/types.h>
@@ -71,9 +74,6 @@ struct dom_binding {};
#endif
#define _RPCSVC_CLOSEDOWN 120
-#ifndef lint
-static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.2 1997/07/28 18:31:11 wpaul Exp $";
-#endif /* not lint */
int _rpcpmstart = 0; /* Started by a port monitor ? */
static int _rpcfdtype;
/* Whether Stream or Datagram ? */
@@ -145,9 +145,9 @@ closedown(int sig)
static void usage()
{
- fprintf(stderr, "Usage: %s [-t master.passwd file] [-d domain] \
-[-p path] [-s] [-f] [-m] [-i] [-a] [-v] [-u] [-h]\n",
- progname);
+ fprintf(stderr, "%s\n%s\n",
+"usage: rpc.yppasswdd [-t master.passwd file] [-d domain] [-p path] [-s]",
+" [-f] [-m] [-i] [-a] [-v] [-u] [-h]");
exit(1);
}
@@ -257,14 +257,14 @@ the %s domain -- aborting", yppasswd_domain);
sock = 0;
_rpcpmstart = 1;
proto = 0;
- openlog(progname, LOG_PID, LOG_DAEMON);
+ openlog("rpc.yppasswdd", LOG_PID, LOG_DAEMON);
} else {
if (!debug) {
if (daemon(0,0)) {
err(1,"cannot fork");
}
}
- openlog(progname, LOG_PID, LOG_DAEMON);
+ openlog("rpc.yppasswdd", LOG_PID, LOG_DAEMON);
sock = RPC_ANYSOCK;
(void) pmap_unset(YPPASSWDPROG, YPPASSWDVERS);
(void) pmap_unset(MASTER_YPPASSWDPROG, MASTER_YPPASSWDVERS);
OpenPOWER on IntegriCloud