summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-27 12:07:49 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-27 12:07:49 -0800
commitee68ada729837162e29d879ca408836d0d66c7ac (patch)
tree44f7512f045850a0206c82c100a5d1a24601cb3c /libdivecomputer.c
parent19356de24620c75c26152c5f19947c8a1e5215cb (diff)
parentff0209a5b42ced7d8b9ef9c5d84cbc5a4d84a0ac (diff)
downloadsubsurface-ee68ada729837162e29d879ca408836d0d66c7ac.tar.gz
Merge branch 'windows-fixes' of git://git.hohndel.org/subsurface
* 'windows-fixes' of git://git.hohndel.org/subsurface: fix mingw-win32 specific warnings in libdivecomputer.c Fix mingw-make.sh to find correct xslt-config
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index b1c86c5ee..9d4c1065a 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -1,5 +1,7 @@
#include <stdio.h>
#include <pthread.h>
+#include <unistd.h>
+#include <inttypes.h>
#include "dive.h"
#include "divelist.h"
@@ -433,8 +435,8 @@ static void event_cb(device_t *device, device_event_t event, const void *data, v
break;
case DEVICE_EVENT_CLOCK:
devdata->clock = *clock;
- printf("Event: systime=%lld, devtime=%u\n",
- clock->systime, clock->devtime);
+ printf("Event: systime=%"PRId64", devtime=%u\n",
+ (uint64_t)clock->systime, clock->devtime);
break;
default:
break;