schlemm to get rid of references to *_version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4852 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,43 +38,21 @@
|
|||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
RCSID("$Id$");
|
||||||
#endif
|
#endif
|
||||||
#include "roken.h"
|
#include "roken.h"
|
||||||
|
|
||||||
/* can't use includes here */
|
#include "print_version.h"
|
||||||
#ifdef KRB5
|
|
||||||
extern const char *heimdal_version;
|
|
||||||
#endif
|
|
||||||
#ifdef KRB4
|
|
||||||
extern const char *krb4_version;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
RCSID("$Id$");
|
|
||||||
|
|
||||||
void
|
void
|
||||||
print_version(const char *progname)
|
print_version(const char *progname)
|
||||||
{
|
{
|
||||||
const char *arg[] = {
|
const char *arg[] = VERSIONLIST;
|
||||||
#ifdef KRB5
|
|
||||||
NULL,
|
|
||||||
#endif
|
|
||||||
#ifdef KRB4
|
|
||||||
NULL,
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
const int num_args = sizeof(arg) / sizeof(arg[0]);
|
const int num_args = sizeof(arg) / sizeof(arg[0]);
|
||||||
char *msg;
|
char *msg;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
int i;
|
int i;
|
||||||
const char **p = arg;
|
|
||||||
|
|
||||||
#ifdef KRB5
|
|
||||||
*p++ = heimdal_version;
|
|
||||||
#endif
|
|
||||||
#ifdef KRB4
|
|
||||||
*p++ = krb4_version;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if(progname == NULL)
|
if(progname == NULL)
|
||||||
progname = __progname;
|
progname = __progname;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user