summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2011-04-25 12:18:44 -0600
committerLloyd Hilaiel <lloyd@hilaiel.com>2011-04-25 12:18:44 -0600
commit88a3c16c784fc14008f1cf3af525a71f735d6617 (patch)
tree2f9650dc40b7c25ae33a49411764ef023bd8dc8b
parent18e45d1e52e7cd7a4e948b74ae30057ab5d960fe (diff)
downloadyajl-88a3c16c784fc14008f1cf3af525a71f735d6617.tar.gz
fix another pair of build warnings
-rw-r--r--perf/perftest.c4
-rw-r--r--src/yajl_tree.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/perf/perftest.c b/perf/perftest.c
index e3e7415..2d30984 100644
--- a/perf/perftest.c
+++ b/perf/perftest.c
@@ -25,7 +25,7 @@
* 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);
@@ -33,7 +33,7 @@ double mygettime(void) {
#else
#define _WIN32 1
#include <windows.h>
-double mygettime(void) {
+static double mygettime(void) {
long long tval;
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
diff --git a/src/yajl_tree.c b/src/yajl_tree.c
index 17bb7af..3e7da94 100644
--- a/src/yajl_tree.c
+++ b/src/yajl_tree.c
@@ -25,7 +25,7 @@
#include "yajl_parser.h"
-#if WIN32
+#ifdef WIN32
#define snprintf sprintf_s
#endif