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,42 +38,20 @@
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
RCSID("$Id$");
|
||||
#endif
|
||||
#include "roken.h"
|
||||
|
||||
/* can't use includes here */
|
||||
#ifdef KRB5
|
||||
extern const char *heimdal_version;
|
||||
#endif
|
||||
#ifdef KRB4
|
||||
extern const char *krb4_version;
|
||||
#endif
|
||||
|
||||
RCSID("$Id$");
|
||||
#include "print_version.h"
|
||||
|
||||
void
|
||||
print_version(const char *progname)
|
||||
{
|
||||
const char *arg[] = {
|
||||
#ifdef KRB5
|
||||
NULL,
|
||||
#endif
|
||||
#ifdef KRB4
|
||||
NULL,
|
||||
#endif
|
||||
};
|
||||
const char *arg[] = VERSIONLIST;
|
||||
const int num_args = sizeof(arg) / sizeof(arg[0]);
|
||||
char *msg;
|
||||
size_t len = 0;
|
||||
int i;
|
||||
const char **p = arg;
|
||||
|
||||
#ifdef KRB5
|
||||
*p++ = heimdal_version;
|
||||
#endif
|
||||
#ifdef KRB4
|
||||
*p++ = krb4_version;
|
||||
#endif
|
||||
|
||||
if(progname == NULL)
|
||||
progname = __progname;
|
||||
|
Reference in New Issue
Block a user