23 lines
803 B
Text
23 lines
803 B
Text
$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)) {
|