summaryrefslogtreecommitdiff
path: root/comms/libopensync/patches/patch-ad
blob: e3d44fac71b14592a11a54f67c79f5d0976b63b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.2 2011/11/29 15:12:08 hans Exp $

--- tools/osynctest.c.orig	2007-03-27 20:49:19.000000000 +0900
+++ tools/osynctest.c
@@ -81,8 +81,6 @@ double writetime;
 double _second()     /* note that some compilers like AIX xlf do not require the trailing  '_' */
 {
     struct timeval tp;
-    int rtn;
-    rtn=gettimeofday(&tp, NULL);
 
     return ((double)tp.tv_sec+(1.e-6)*tp.tv_usec);
 }
@@ -212,7 +210,7 @@ void modify_data(OSyncMember *member, co
 
 	const char *de = NULL;
 	while ((de = g_dir_read_name(dir))) {
-		char *filename = g_build_filename(localdir, de, NULL);
+		char *filename = g_build_filename(localdir, de, (char *)NULL);
 
 		OSyncChange *change = osync_change_new();
 		if (!osync_member_make_random_data(member, change, objtype)) {