From 03ba36b2b593b16fd53234e354f3d17a0b3ab267 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 11 May 1998 20:38:25 +0000 Subject: [PATCH] schlemm to get rid of references to *_version git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4852 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/print_version.c | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/lib/roken/print_version.c b/lib/roken/print_version.c index d40dc412a..bdabf3164 100644 --- a/lib/roken/print_version.c +++ b/lib/roken/print_version.c @@ -38,43 +38,21 @@ #ifdef HAVE_CONFIG_H #include +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;