-/* Copyright Transarc Corporation 1998 */
+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
/* Make the AFS_component_version_number.c file. Do it in C since there's no
* guarantee of perl on an NT platform.
*/
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
-#include <malloc.h>
#include <assert.h>
#include <string.h>
exit(1);
}
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
- int n = 0;
char stampsFile[1024];
char stateFile[1024];
char s[1024];
- char *p;
int i;
char *baseDir;
int argDir = 0;
char *outputFile = NULL;
char outputFileBuf[sizeof(VERS_FILE) + 2];
struct stat sbuf;
- time_t versTime, stampsTime, stateTime;
+ time_t versTime;
int reBuild = 0;
int code;
char *cml_prefix = NULL;