* Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
* Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>
* Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>
+ * Copyright 2009, 2010, 2011 James Nobis <frt@quelrod.net>
*
* This file is part of freerainbowtables.
*
struct timezone
{
- int tz_minuteswest; /* minutes W of Greenwich */
- int tz_dsttime; /* type of dst correction */
+ int tz_minuteswest; /* minutes W of Greenwich */
+ int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval *tv, struct timezone *tz)
bool boinc_ReadLinesFromFile(string sPathName, vector<string>& vLine)
{
vLine.clear();
-#ifdef 0
+#ifdef USE_INTEGRATED_CHARSET
vLine.push_back("byte = []");
vLine.push_back("alpha = [ABCDEFGHIJKLMNOPQRSTUVWXYZ]");
vLine.push_back("alpha-space = [ABCDEFGHIJKLMNOPQRSTUVWXYZ ]");
if (file != NULL)
{
- unsigned int len = GetFileLen(file);
+ long len = GetFileLen(file);
char* data = new char[len + 1];
fread(data, 1, len, file);
data[len] = '\0';
FILE* file = fopen(sPathName.c_str(), "rb");
if (file != NULL)
{
- unsigned int len = GetFileLen(file);
+ long len = GetFileLen(file);
char* data = new char[len + 1];
fread(data, 1, len, file);
data[len] = '\0';