Skip to content
Snippets Groups Projects
Commit 49ce218d authored by rswindell's avatar rswindell
Browse files

Fix MSVC10 warnings.

parent 25be489e
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -170,7 +170,7 @@ when_t DLLCALL rfc822date(char* date)
}
tm.tm_isdst=-1; /* Don't adjust for daylight-savings-time */
when.time=mktime(&tm);
when.time=(uint32_t)mktime(&tm);
return(when);
}
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -129,7 +129,7 @@ BOOL ftouch(const char* fname)
BOOL fmutex(const char* fname, const char* text, long max_age)
{
int file;
long t;
time_t t;
#if !defined(NO_SOCKET_SUPPORT)
char hostname[128];
if(text==NULL && gethostname(hostname,sizeof(hostname))==0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment