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

--- tools/osynctest.c.orig	2007-03-27 20:49:19.000000000 +0900
+++ tools/osynctest.c
@@ -81,8 +81,7 @@ 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);
+    gettimeofday(&tp, NULL);
 
     return ((double)tp.tv_sec+(1.e-6)*tp.tv_usec);
 }
@@ -212,7 +211,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)) {