char PathToSecondDir[256];
int ThreadStatus[MAX_HANDLES];
int verbose;
-int BufferSize = 256*1024;
+static int BufferSize = 256*1024;
int UseLocker = 0;
-//int UseUnicode = 0;
int EndOnError;
int AfsTrace;
int ChronLog;
{
int i;
int LoopCount;
- int SecondsToRun;
+ time_t SecondsToRun;
int NumberOfIterations;
int StressTestUsed = 0;
int rc;
char buffer[512];
char FileName[256];
char MoveFileName[256];
- char Locker[64];
+ char Locker[256];
char command[512];
char DateTime[512];
char WorkingDirectory[512];
{
#endif /* HAVE_HESOID */
strcpy(AfsLocker, Locker);
+#if 0
+ /* jaltman - this makes no sense. why strip off the server name and leave
+ * an absolute path on the local disk?
+ */
if (!strnicmp(Locker, "\\\\afs\\", strlen("\\\\afs\\")))
strcpy(TargetDirectory, &Locker[strlen("\\\\afs\\")]);
else
+#endif
strcpy(TargetDirectory, Locker);
#ifdef HAVE_HESOID
}
if (SecondsToRun != 0)
{
time(&StartTime);
- if (StartTime > (time_t)SecondsToRun)
+ if (StartTime > SecondsToRun)
{
break;
}