summaryrefslogtreecommitdiff
path: root/eBones/libexec/rkinitd/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'eBones/libexec/rkinitd/util.c')
-rw-r--r--eBones/libexec/rkinitd/util.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/eBones/libexec/rkinitd/util.c b/eBones/libexec/rkinitd/util.c
deleted file mode 100644
index 20812051dc48f..0000000000000
--- a/eBones/libexec/rkinitd/util.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * $Id: util.c,v 1.1 1993/12/10 18:59:29 dglo Exp gibbs $
- * $Source: /usr/src/eBones/rkinitd/RCS/util.c,v $
- * $Author: dglo $
- *
- * This file contains general rkinit server utilities.
- */
-
-#if !defined(lint) && !defined(SABER) && !defined(LOCORE) && defined(RCS_HDRS)
-static char *rcsid = "$Id: util.c,v 1.1 1993/12/10 18:59:29 dglo Exp gibbs $";
-#endif /* lint || SABER || LOCORE || RCS_HDRS */
-
-#include <stdio.h>
-#include <rkinit.h>
-#include <rkinit_err.h>
-#include <rkinit_private.h>
-
-#include "rkinitd.h"
-
-static char errbuf[BUFSIZ];
-
-void rpc_exchange_version_info();
-void error();
-
-#ifdef __STDC__
-int choose_version(int *version)
-#else
-int choose_version(version)
- int *version;
-#endif /* __STDC__ */
-{
- int c_lversion; /* lowest version number client supports */
- int c_hversion; /* highest version number client supports */
- int status = RKINIT_SUCCESS;
-
- rpc_exchange_version_info(&c_lversion, &c_hversion,
- RKINIT_LVERSION, RKINIT_HVERSION);
-
- *version = min(RKINIT_HVERSION, c_hversion);
- if (*version < max(RKINIT_LVERSION, c_lversion)) {
- sprintf(errbuf,
- "Can't run version %d client against version %d server.",
- c_hversion, RKINIT_HVERSION);
- rkinit_errmsg(errbuf);
- return(RKINIT_VERSION);
- }
-
- return(status);
-}