Permalink
Browse files

fix another pair of build warnings

  • Loading branch information...
1 parent 18e45d1 commit 88a3c16c784fc14008f1cf3af525a71f735d6617 @lloyd committed Apr 25, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 perf/perftest.c
  2. +1 −1 src/yajl_tree.c
View
4 perf/perftest.c
@@ -25,15 +25,15 @@
* portable format */
#ifndef WIN32
#include <sys/time.h>
-double mygettime(void) {
+static double mygettime(void) {
struct timeval now;
gettimeofday(&now, NULL);
return now.tv_sec + (now.tv_usec / 1000000.0);
}
#else
#define _WIN32 1
#include <windows.h>
-double mygettime(void) {
+static double mygettime(void) {
long long tval;
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
View
2 src/yajl_tree.c
@@ -25,7 +25,7 @@
#include "yajl_parser.h"
-#if WIN32
+#ifdef WIN32
#define snprintf sprintf_s
#endif

0 comments on commit 88a3c16

Please sign in to comment.