/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
- * Copyright (c) 1991-1998 University of Maryland at College Park
+ * Copyright (c) 1991-1999 University of Maryland at College Park
* All Rights Reserved.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* file named AUTHORS, in the root directory of this distribution.
*/
/*
- * $Id: versuff.c.in,v 1.6.4.1.4.1 2001/07/20 19:37:20 jrjackson Exp $
+ * $Id: versuff.c.in,v 1.12 2006/05/25 01:47:12 johnfranks Exp $
*
* provide amanda version number and suffix appended to program names
*/
#include "version.h"
const int VERSION_MAJOR = 2;
-const int VERSION_MINOR = 4;
-const int VERSION_PATCH = 5;
-const char *const VERSION_COMMENT = "";
+const int VERSION_MINOR = 6;
+const int VERSION_PATCH = 1;
+const char *const VERSION_COMMENT = "p2";
-char *
-versionsuffix()
+const char *
+versionsuffix(void)
{
#ifdef USE_VERSION_SUFFIXES
- static char *vsuff = NULL;
-
- if(vsuff) return vsuff; /* been here once already */
-
- vsuff = stralloc2("-", version());
- malloc_mark(vsuff);
- return vsuff;
+ return "-2.6.1p2";
#else
- return "";
+ return "";
#endif
}
-char *
-version()
+const char *
+version(void)
{
- static char *vsuff = NULL;
- char major_str[NUM_STR_SIZE];
- char minor_str[NUM_STR_SIZE];
- char patch_str[NUM_STR_SIZE];
-
- if(vsuff) return vsuff; /* been here once already */
-
- ap_snprintf(major_str, sizeof(major_str), "%d", VERSION_MAJOR);
- ap_snprintf(minor_str, sizeof(minor_str), "%d", VERSION_MINOR);
- ap_snprintf(patch_str, sizeof(patch_str), "%d", VERSION_PATCH);
-
- vsuff = vstralloc(major_str, ".", minor_str, ".", patch_str,
- VERSION_COMMENT,
- NULL);
- malloc_mark(vsuff);
- return vsuff;
+ return "2.6.1p2";
}